linux线程栈与进程栈

1 线程使用方法 pthread_create用于建立一个线程,pthread_join用于等待线程执行完毕,简单应用以下:html #include<stdio.h> #include<pthread.h> #include<stdlib.h> void tid_1(){ printf("I am tid 1!\n"); sleep(1); return; } voi
相关文章
相关标签/搜索