> The issue I see is with my dual core, where a thread updating the latch is > not seen from another thread. The concurrency of 4 is reached if you put a > sout, but the latch update is not visible to the main thread. This is due to > the Java memory model AFAIK
This would mean that either CountDownLatch is not used correctly in MinConcurrencyTest or that there is a bug in CountDownLatch, which is very improbable. Can you exclude the possibility that concurrencyReachedLatch.await simply times out too early? Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
