Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ExecutorService pool = Executors.newFixedThreadPool(3);
  2. //pool has 21 threads in queue
  3.  
  4. //do somestuff
  5.  
  6. network sends a change in thread limit signal when there are 12 threads left in queue
  7. //redeclare:
  8. pool = Executors.newFixedThreadPool(4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement