討論串[理工] OS process synchronization
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
progress成立,但mutual exclusion跟bounded waiting都不成立。. mutual exclusion在此情況下不成立:. 假設現在turn = 1. 但是process 1只剛進while(true) loop,. 卻還沒把自己的block設成true,cpu就被p
(還有443個字)
內容預覽:
consider the following program. boolean block[2];. int turn;. void p(int id){. while(true). blocked[id]=true;. while(trun!=id){. while(blocked[1-id])
(還有164個字)
首頁
上一頁
1
下一頁
尾頁