[問題] synchronized method
http://programmingexamples.wikidot.com/mutex
這個網頁最底下的 Mutex5.java 是不是哪裡有錯?
跑起來還是會有兩個thread一起進入critical section。
還是執行的方式不對嗎?
謝謝。
--
Idle lawyers tend to become politicians,
so there is a certain social value in keeping lawyers busy.
from "Operating System Principles, 7th ed"
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.39.124
→
06/25 12:48, , 1F
06/25 12:48, 1F
→
06/25 12:50, , 2F
06/25 12:50, 2F