Timeline for Moving from normal threads to ExecutorService thread pools in java
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2013 at 18:20 | comment | added | David Harkness | The OP was concerned about creating a new thread for each request--not about using too many concurrent threads. A thread pool alleviates this problem. NIO would be helpful if the volume of requests is consuming too many resources. | |
May 3, 2013 at 13:48 | comment | added | user93353 | Couple of things - Is NIO really faster - mailinator.blogspot.in/2008/02/…. Also, won't using a thread pool be advantageous in terms of the cost of creating a new thread - i.e. each thread runs for a very short time in my case. So may be cost of creating the thread is high as compared to the length of time the thread runs. | |
May 3, 2013 at 12:25 | history | answered | Alexei Kaigorodov | CC BY-SA 3.0 |