
[理工] OS 關於fork跟thread

我網路上找了一下
恐龍好像有說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
推
11/30 22:08,
6年前
, 1F
11/30 22:08, 1F
→
11/30 22:08,
6年前
, 2F
11/30 22:08, 2F
→
11/30 22:37,
6年前
, 3F
11/30 22:37, 3F