3, 2, 1, Go! A CountdownLatch in practice
28/11/2011
1 comment
Recently, I attended a talk titled ‘the Well-grounded Java Developer’, at Devoxx ’11. The authors of the similarly named book convinced me once more that the java.util.concurrent package in the JDK contains a lot of useful classes and concepts that deserve a closer look. The package should definitely keep you from re-inventing the wheel.
Thus, it reminded me of how we put a CountdownLatch to actual use in a recent project.
In this post we will show you how.
Categories: Java
concurrency, countdownlatch, jdk, synchronization, testing, threadsafety, unittesting
Recent Comments