Groups
Groups
Sign in
Groups
Groups
中正資工,作業系統概論
Conversations
About
Send feedback
Help
live lock的例子
14 views
Skip to first unread message
OS大叔
unread,
Nov 15, 2023, 7:30:54 AM
11/15/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 中正資工,作業系統概論
例如:
compare_exchange
二個core不斷的試著把lock設定為1,但他們都是同時做,這樣當然就會失敗,不斷的嘗試(redo、禮讓)不斷的失敗。。。
live lock
另一個例子
love lock,二個人不斷的想表白,正要表白時,另一個人說:我也有事情跟你說。然後二個人不斷的說「我也有事情跟你說」
就這樣,陷入了 love lock
Reply all
Reply to author
Forward
0 new messages