"concurrency/ExplicitCriticalSection.java" not accurate
caob1234 opened this issue · 2 comments
caob1234 commented
ExplicitPairManager1 method could't use synchronized keywords
jhwsx commented
Yes,they are ill codes.
dawxy commented
ExplicitPairManager2. increment() and PairChecker.run() have data race.
ExplicitPairManager2.lock and PairManager.getPair() are not the same lock, The synchronized lock used by PairManager.getPair () is the ExplicitPairManager2 object lock.