作者ok8752665 ()
看板Grad-ProbAsk
標題[理工] OS 關於fork跟thread
時間Sat Nov 30 21:04:41 2019
http://i.imgur.com/5uVHuPK.jpg
我網路上找了一下
恐龍好像有說if the seperate process does not call exec() after forking,the seperate process should duplicate all threads
那這樣的話這題不就是create 4個threads才對了嗎?
if裡面創了兩個 出來那個fork會再複製出另外兩個
-----
Sent from JPTT on my Sony G8342.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.82.72.204 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1575119085.A.F49.html
推 mistel: 問洪逸是說後面兩條thread是被複製出來的,被生出來的thr 11/30 22:08
→ mistel: ead只有if的那兩條 11/30 22:08
→ ok8752665: 喔喔 ok 這樣我知道了 11/30 22:37