Implement a threadpool
Anonimo
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.