发布时间:2014-11-25 22:55:19
在线程内部,私有数据可以被各个函数访问,但对其他线程是屏蔽的。一个明显的例子是errno,每个线程都有自己的副本,不然由于线程间的切换,在一个线程里输出的很可能是令一线程的出错信息。。......【阅读全文】
发布时间:2014-11-24 23:07:42
#include #include int *pa = NULL;void * fn_thread1(void * c);int main(void){ pthread_t tid; int err = 0;.........【阅读全文】
发布时间:2014-11-20 13:35:03
一、制作补丁:diff -urP from-file to-fileIf from-file is a directory and to-file is not, diff compares the file in from-file whose file name is that of to-file, and vice versa.If both from-file and to-file are directories, diff compares corresponding files in both director.........【阅读全文】