- 博客(2)
- 收藏
- 关注
原创 linux下使用pthread库函数创建线程
#include #include #include #include #include void thread(void) { int i; for(i=0;i { printf("hello!"); } } main() { pthread_t id; int i,ret; ret=
2014-04-10 23:30:21 511
原创 linux 下的fork()函数使用例子
#include #include #include #include main () { pid_t pid; pid=fork(); if (pid printf("error in fork!"); else if (pid == 0) printf("i am the chil
2014-04-10 22:26:18 440
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人