News for hackers. Stuff that matters.
Re:Java ExecutorService with a blocking queue by asymptotic on Thursday February 04, 2016 @09:19AM (#11034021)
When would you want to block as you insert tasks into an ExecutorService already executing N concurrent tasks? Why not use "newFixedThreadPool" and don't block but stil keep a maximum of N concurrent tasks? Honest question, not snarky.
Re:Java ExecutorService with a blocking queue by awsometak on Thursday February 04, 2016 @09:40AM (#11034142)
This can be used when you have limited resources like cpus and you want only a limited set of resource intensive tasks executing at any particular point of time..