源码:
#include
#include
#include
void *producter_f (void *arg);
void *consumer_f (void *arg);
int buffer_has_item=0;
pthread_mutex_t mutex;
int running =1 ;
int main (voi...
分类:
编程语言 时间:
2014-08-17 22:50:32
阅读次数:
278
HAS_ONE(值得注意的是,这是主动关联,外键必须是被关联的表): 1 array(//关联的数据表 7 'mapping_type'=>self::HAS_ONE,//一对一 8 'class_name' => 'artag',//关...
分类:
Web程序 时间:
2014-08-17 22:40:02
阅读次数:
407
InterGames is a high-tech startup company that specializes in developing technology that allows users to play games over the Internet. A market analysis has alerted them to the fact that games of chan...
分类:
其他好文 时间:
2014-08-17 21:22:52
阅读次数:
352
Desert KingTime Limit:3000MSMemory Limit:65536KTotal Submissions:20586Accepted:5777DescriptionDavid the Great has just become the king of a desert cou...
分类:
其他好文 时间:
2014-08-17 18:18:43
阅读次数:
284
0. 首先是top查看一下系统状况 发现两个参数异常,一是平均负载高,一是cpu %wa一直在50%以上。 查了一下%wa参数的意义: wa -- iowait
Amount of time the CPU has been waiting for I/O to complete. 1. 查看磁...
分类:
系统相关 时间:
2014-08-17 17:12:52
阅读次数:
308
Description
It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to make dryi...
分类:
其他好文 时间:
2014-08-17 17:04:22
阅读次数:
249
Problem Description
Weiwei is a software engineer of ShiningSoft. He has just excellently fulfilled a software project with his fellow workers. His boss is so satisfied with their job that he decid...
分类:
其他好文 时间:
2014-08-17 11:50:02
阅读次数:
338
Problem Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands i...
分类:
其他好文 时间:
2014-08-17 10:29:42
阅读次数:
246
C. Petya and SpidersLittle Petya loves training spiders. Petya has a boardn?×?min size. Each cell of the board initially has a spider sitting on it. A...
分类:
其他好文 时间:
2014-08-17 01:04:31
阅读次数:
245
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-08-16 22:21:41
阅读次数:
235