Qubole interview question

Implement a threadpool

Interview Answer

Anonymous

11 Aug 2019

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.