码迷,mamicode.com
首页 >  
搜索关键字:num lock    ( 23499个结果
LA 4731
dp[i][j]意思是前i个分成j组最小的花费#include#include#include#include#include#define maxn 110using namespace std;int dp[maxn][maxn];int vis[maxn][maxn];int num[maxn...
分类:其他好文   时间:2014-07-16 19:06:34    阅读次数:194
poj 3254 Corn Fields 状压dp
#include #include using namespace std;#define mod 100000000int M,N,top=0;int cur[20],dp[20][600];int state[600],num[110];bool ok(int x){ if(x&x<<1)...
分类:其他好文   时间:2014-07-16 18:57:07    阅读次数:229
Linux之crontab
一 croncrond位于/etc/rc.d/init.d/crond 或 /etc/init.d 或 /etc/rc.d /rc5.d/S90crond,最总引用/var/lock/subsys/crond。cron是一个linux下的定时执行工具(相当于windows下的scheduled ta...
分类:系统相关   时间:2014-07-16 18:56:27    阅读次数:297
0714-----C++Primer听课笔记----------封装mutex,thread,condition等
1.封装Mutex1.1 封装前先总结一下常用的mutex操作有:pthread_mutex_init(&mutex, NULL ); //初始化一个互斥锁pthread_mutex_destroy(&mutex); //销毁一个互斥锁pthread_mutex_lock(&mutex); //上锁...
分类:编程语言   时间:2014-07-16 17:41:55    阅读次数:242
poj 3020 Antenna Placement
二分匹配基础,只要将a,b找出来就好 对于每个“ *”的4个方向进行查找并且记录他们间的关系; 因为我们对a->b和b->a都进行了读取,所以要除2; #include #include char str[41][11]; bool mat[400][400],usedif[400]; int h,w,link[400],num; int dx[4]={0,0,-1,1}; int dy[4...
分类:其他好文   时间:2014-07-16 10:17:10    阅读次数:229
<深入理解C指针>学习笔记和总结 第四章 指针和数组
数组是一个什么玩意: 数组和指针我的理解,有相同之处也有不同之处。因有相同之处,因此一些资料上说,数组和指针本质是相同的。因有不同之处,因此也有一些资料上说,数组和指针是不一样的。 相同之处: 数组名字和指针名字都代表了一个地址。 如:int num[10];num是数组名。函数开辟了一个存储十个整数类型的空间,而num是他们的首地址。 int *p; p=(int *)malloc(...
分类:其他好文   时间:2014-07-16 08:14:59    阅读次数:167
MySqli 执行多条SQL语句
使用multi_query(); 去执行SQL语句,执行多条语句多个SQL语句用“;”分开一:没有结果集的语句:$sql="insert into products (cid,name,price,num) values('2','PHP','2.22','10');update products ...
分类:数据库   时间:2014-07-15 23:12:08    阅读次数:325
library cache lock和cursor: pin S wait on X等待
1.现象:客户10.2.0.4 RAC环境,出现大量的library cache lock和cursor: pin S wait on X等待,经分析是由于统计信息收集僵死导致的。数据库在8点到9点期间,数据库两个节点都存在明显的cursor: pin S wait on X和library c.....
分类:其他好文   时间:2014-07-14 23:51:12    阅读次数:577
Chubby是什么?
先简单的理解,以后补充:为了解决hadoop分布式系统的一致性问题 ,有很多人提出很多protocol,其中就有有名的Paxos算法(Latex作者提出,算法需要学习),但是Chubby并不是一个算法或者protocol,它是一项service,是一个lock service,这个service的实...
分类:其他好文   时间:2014-07-14 20:52:46    阅读次数:250
JDK5.0 特性-线程锁Lock
来自:http://www.cnblogs.com/taven/archive/2011/12/17/2291470.html 1 import java.util.concurrent.ExecutorService; 2 3 import java.util.concurrent.Exe...
分类:编程语言   时间:2014-07-14 16:06:40    阅读次数:328
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!