pthread_exit() 如果放在 main() 函式,是用來確保所有用POSIX Thread API 建立的執行緒已經完成。 int main() { pthread_t tid1, tid2; pthread_create(&tid1, NULL, ...
確定! 回上一頁