BugFixed:lock misuse
BugFixed: Shows how to use CountDownLatch class.