摘要: #include<stdio.h>#include<pthread.h>#include<string.h>#include<sys/types.h>#include<unistd.h>pthread_t ntid;void printids(const char *s){pid_t pid;pthread_t tid;pid = getpid();tid = pthread_self();printf("%s pid %u tid %u (0x%x)\n",s,(unsigned int)pid,(unsigne 阅读全文
posted @ 2011-10-22 17:25 greencolor 阅读(203) 评论(0) 推荐(0) 编辑