TIJ4-code icon indicating copy to clipboard operation
TIJ4-code copied to clipboard

"concurrency/ExplicitCriticalSection.java" not accurate

Open caob1234 opened this issue 5 years ago • 2 comments

ExplicitPairManager1 method could't use synchronized keywords

caob1234 avatar Jan 18 '20 20:01 caob1234

Yes,they are ill codes.

jhwsx avatar Mar 13 '20 07:03 jhwsx

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.

dawxy avatar Apr 23 '20 08:04 dawxy