作者hl4 (Minimi)
看板java
标题[问题] synchronized method
时间Sat Jun 25 12:28:09 2011
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
2F:→ hl4:我懂了。 06/25 12:50