I\'m trying to write a multithreaded web crawler.
My main entry class has the following code:
ExecutorService exec = Executors.newFixedThreadPool(num
I am not sure I understand your design, but this may be a job for a Semaphore
Semaphore