Implement a threadpool
Anonymous
Here complete working code with corner cases and locking construct is expected. I had used blocking queue for incoming task and hence he asked me to implement blocking queue using normal queue with locking primitives used as per requirement.
Check out your Company Bowl for anonymous work chats.