Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExecutorService pool = Executors.newFixedThreadPool(3);
- //pool has 21 threads in queue
- //do somestuff
- network sends a change in thread limit signal when there are 12 threads left in queue
- //redeclare:
- pool = Executors.newFixedThreadPool(4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement