討論串[理工] [OS]-關於Fork()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
Forking 是把 process 複製一份成為 child. Threading 是共用同一個 process. 此題是先 forking 再 threading. 所以,. _. / parent process(P). P => fork--. \_child process(P的複製)=>
(還有95個字)
內容預覽:
#include<pthread.h>. #include<stdio.h>. int value = 0;. void *runner(void *param); /*the thread*/. int main(int argc, char *argv[]). {. int pid;. pthr
(還有478個字)
首頁
上一頁
1
下一頁
尾頁