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
相關文章
相關標籤/搜索