[問題] 關於SEM_UNDO
請教各位前輩
SEM_UNDO可以讓process terminate的時候
把semaphore的狀態restore回來
不過如果process在terminate之前 ,就已經V()了
那是不是等於restore兩次?
所以想請教一下甚麼情況下才會用到SEM_UNDO這個flag?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.43.79.201
CSSE 近期熱門文章
PTT數位生活區 即時熱門文章
10
12