Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

第十章 wait

7 views
Skip to first unread message

sung descent

unread,
Nov 23, 2012, 11:04:58 PM11/23/12
to osfrom...@googlegroups.com
是不是有這樣的可能, parent process 執行 wait(), child process 執行 exit(1),
可是 do_wait() 先執行完後才輪到 do_exit();
這樣 parent process 在 wait() 後會得到 -1。

所以若遇到這樣, 應該還要繼續執行 wait()。

Reply all
Reply to author
Forward
0 new messages