看板 Grad-ProbAsk 關於我們 聯絡資訊
大家好,我在讀原文書的時候這一段看不懂 Next, we illustrate a classic software-based solution to the critical-section problem known as Peterson’s solution. Because of the way modern computer architectures perform basic machine-language instructions, such as load and store, there are no guarantees that Peterson’s solution will work correctly on such architectures. 這是原文書上Process Synchronization第三節 它應該是說 Peterson’s solution 不適用在 Load/store architecture 想請問實際的原因是?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.168.88.15
A4P8T6X9:思考看看dynamical scheduling. 03/13 00:01
A4P8T6X9:processor會重排指令已減少hazard,而release lock,就是 03/13 00:02
A4P8T6X9:sw,很可能被重排,導致太晚進入CS或太早出來。 03/13 00:03