摘要:
http://blog.csdn.net/lishuhuakai/article/details/11928055 阅读全文
posted @ 2017-05-22 17:05
qlky
阅读(225)
评论(0)
推荐(0)
摘要:
#include #include #include void thread(void) { printf("This is a pthread.\n"); sleep(10); } int main(void) { pthread_t id[100]; int i,ret; for(i=0;i<100;i++){ ret=pthread_create(&id[i],NULL,(void ... 阅读全文
posted @ 2017-05-22 16:53
qlky
阅读(149)
评论(0)
推荐(0)
摘要:
#include <sys/types.h>#include <unistd.h>#include <stdio.h>#include <stdlib.h>main(){pid_t pid; pid = fork();if(pid < 0)printf("error occurred!\n");el 阅读全文
posted @ 2017-05-22 14:11
qlky
阅读(164)
评论(0)
推荐(0)

浙公网安备 33010602011771号