上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页

2013年1月22日

摘要: http://www.douban.com/note/63382036/ 阅读全文
posted @ 2013-01-22 10:14 brainworm 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_4b976b2d0100jk0b.html 阅读全文
posted @ 2013-01-22 10:13 brainworm 阅读(298) 评论(0) 推荐(0) 编辑

2013年1月21日

摘要: 把make的warning和error信息输出到文件里2009-04-23 10:132562人阅读评论(1)收藏举报由于make会把warning和error信息输出到标准错误上,所以想把这些信息重定位到文件里,需要先把标准错误重定向到标准输出上下面的命令是有效的做法:make>a.txt 2>&1注意,make2>&1 >a.txt是无效的,make仍会把warning和error信息输出到标准错误上,可能bash是从按栈的方式从后到前处理参数的,在重定向到a.txt的时候2>&1尚未生效。http://blog.csdn.net/zh 阅读全文
posted @ 2013-01-21 15:08 brainworm 阅读(371) 评论(0) 推荐(0) 编辑

2013年1月15日

摘要: http://blog.csdn.net/shark863/article/details/2107356 阅读全文
posted @ 2013-01-15 16:28 brainworm 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 # This is a template Makefile generated by rpcgen 2 3 # Parameters 4 5 CLIENT = rdict_client 6 SERVER = rdict_server 7 8 SOURCES_CLNT.c = 9 SOURCES_CLNT.h = 10 SOURCES_SVC.c = 11 SOURCES_SVC.h = 12 SOURCES.x = rdict.x13 14 TARGETS_SVC.c = rdict_svc.c rdict_xdr.c rdict_srv_func.c15 TARGETS_C... 阅读全文
posted @ 2013-01-15 16:27 brainworm 阅读(160) 评论(0) 推荐(0) 编辑

2013年1月14日

摘要: http://hi.baidu.com/boahegcrmdghots/item/f3ca1a3c2d47fcc52e8ec2e1为什么是while(sum<100),而不是if(sum<100) ?这是因为在pthread_cond_signal()和pthread_cond_wait()返回之间,有时间差,假设在这个时间差内,还有另外一个线程t4又把sum减少到100以下了,那么t3在pthread_cond_wait()返回之后,显然应该再检查一遍sum的大小. 阅读全文
posted @ 2013-01-14 17:02 brainworm 阅读(148) 评论(0) 推荐(0) 编辑

2013年1月12日

摘要: 1 #include <stdio.h> 2 3 int a[10] = {2, 2, 1, 9, 4, 6, 3}; 4 int len = 7; 5 6 void bubble_sort(int *a, int len) 7 { 8 int flag = 0, i, j; 9 for (i = 0; i < len - 1; i++) {10 flag = 0;11 for (j = 0; j < len - i - 1; j++) {12 if (a[j] < a[j + 1]) {13 ... 阅读全文
posted @ 2013-01-12 21:30 brainworm 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1 # 2 # Created by gmakemake (Sparc Jul 27 2005) on Fri Jul 1 22:59:56 2011 3 # 4 5 # 6 # Definitions 7 # 8 9 .SUFFIXES:10 .SUFFIXES: .a .o .c .C .cpp11 .c.o:12 $(COMPILE.c) $<13 .C.o:14 $(COMPILE.cc) $<15 .cpp.o:16 $(COMPILE.cc) $<17 .c.a:18 $(COMPILE.c) -o $%... 阅读全文
posted @ 2013-01-12 21:20 brainworm 阅读(202) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jqandjq/article/details/5987261 阅读全文
posted @ 2013-01-12 10:14 brainworm 阅读(89) 评论(0) 推荐(0) 编辑

2013年1月11日

摘要: http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index1.html几点感想写一下:1. 将一个文件映射到内存2. 两个进程共享内存还是通过将同一个文件映射到同一块物理内存,来实现读写,传输数据,进行通信的 阅读全文
posted @ 2013-01-11 21:35 brainworm 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页

导航