上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: #include #include #include #include #include #include #include #include #include #include #if 1 int msg_qid; pthread_t recv_thread; typedef struct msgbuf { long msgtype; char ... 阅读全文
posted @ 2017-05-20 23:22 soul.stone 阅读(427) 评论(0) 推荐(0) 编辑
摘要: thread_2: pid=0x741 tid=0x743 self=0x85254700thread_2: my_var=9 addr=0x852546fc thread_1: pid=0x741 tid=0x742 self=0x85a55700thread_1: my_var=8 addr=0 阅读全文
posted @ 2017-05-20 23:09 soul.stone 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1, 基于linux4.9版本 2,测试代码 阅读全文
posted @ 2017-05-15 21:41 soul.stone 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 测试代码: 阅读全文
posted @ 2017-05-14 20:32 soul.stone 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 测试代码: 阅读全文
posted @ 2017-05-14 13:20 soul.stone 阅读(314) 评论(0) 推荐(0) 编辑
摘要: C语言标准是这样规定的:int最少16位(2字节),long不能比int短,short不能比int长,具体位长由编译器开发商根据各种情况自己决定。在32位x86处理器上,short、int、long普遍的长度是2字节、4字节、4字节。当然如果编译器开发商愿意,long完全可以是8字节。 在 win6 阅读全文
posted @ 2017-05-14 13:08 soul.stone 阅读(29889) 评论(1) 推荐(3) 编辑
摘要: https://en.wikipedia.org/wiki/Sorting_algorithm http://www.cnblogs.com/eniac12/p/5329396.html Computational complexity theory Big O notation Total ord 阅读全文
posted @ 2017-05-14 12:48 soul.stone 阅读(217) 评论(0) 推荐(0) 编辑
摘要: strace - trace system calls and signals usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file] [-p pid] ... [-s strsize] [-u username] [ 阅读全文
posted @ 2017-05-02 22:45 soul.stone 阅读(1611) 评论(0) 推荐(0) 编辑
摘要: 1,Top命令:用于按一定的顺序显示所有正在运行而且处于活动状态的实时进程,而且会定期更新显示结果。这条命令显示了CPU的使用率、内存使用率、交换内存使用大小、高速缓存使用大小、缓冲区使用大小,进程PID、所使用命令以及其他。它还可以显示正在运行进程的内存和CPU占用多的情况。 2,VmStat 命 阅读全文
posted @ 2017-05-02 22:28 soul.stone 阅读(1597) 评论(0) 推荐(0) 编辑
摘要: tar -c: 建立压缩档案-x:解压-t:查看内容-r:向压缩归档文件末尾追加文件-u:更新原压缩包中的文件 这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。-z:有gzip属性的-j:有bz2属性的-Z:有compr 阅读全文
posted @ 2017-05-02 21:58 soul.stone 阅读(282) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页