討論串[理工] [OS]-關於Fork()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 5→)留言7則,0人參與, 最新作者svanavs (svanavs)時間16年前 (2009/08/18 21:14), 編輯資訊
0
0
0
內容預覽:
Forking 是把 process 複製一份成為 child. Threading 是共用同一個 process. 此題是先 forking 再 threading. 所以,. _. / parent process(P). P => fork--. \_child process(P的複製)=>
(還有95個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者yesa315 (XD)時間16年前 (2009/08/18 19:34), 編輯資訊
0
0
0
內容預覽:
#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
下一頁
尾頁