討論串[理工] [os] test-and-set 92中原
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
假設有三個process A T 平行執行 然後 lock = false. B T. C T. waiting[i] = true;. key = true;. // 跑到while的時候 設A 搶到lock 跑進 Critical section. // 這時 process wait. //
(還有725個字)
內容預覽:
The algorithm uses the test-and-set instruction is shown in the. following.(12%). waiting[i] = true;. key = true;. while(waiting[i] and key) do key =
(還有147個字)
首頁
上一頁
1
下一頁
尾頁