dawxy

Results 1 comments of dawxy

[ExplicitPairManager2. increment()](https://github.com/BruceEckel/TIJ4-code/blob/master/examples/concurrency/CriticalSection.java#L68-L76) and [PairChecker.run() ](https://github.com/BruceEckel/TIJ4-code/blob/master/examples/concurrency/CriticalSection.java#L101-L102)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.