Active threads consume system resources, especially memory. When there more runnable threads than available processors, threads sit idle. Having many idle threads can tie up a lot of memory, putting pressure on the garbage collector, and having many threads competing for the CPUs can impose other performance costs as well. If you have enough threads to keep all the CPUs busy, creating more threads won’t help and may even hurt.
Bloch, Joshua; Goetz, Brian; Peierls, Tim; Bowbeer, Joseph; Holmes, David; Lea, Doug (2006-05-09). Java Concurrency in Practice (Kindle Locations 2772-2775). Pearson Education (US). Kindle Edition.
This was posted 3 months ago. It has 1 notes.
Tags:  programming  java 
  1. infynyxx posted this

Hi, I'm Prajwal and this is my personal blog mainly focusing on some random things directy or indirectly affecting my life with some extra touch on finance and economy. I also have a tech blog, kind of my professional blog. I work @ collegehumor.com Sailthru, a NYC based startup as a back end developer.

I grew up in Kathmandu and currently live in Queens, NY (NYC).


Copyright Prajwal Tuladhar.

Some Rights Reserved