A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Synchronization
Thread Pooling and its implementation
Joined: Sep 28, 2011
Nov 14, 2011 01:05:12
I am new in Java-Thread. Can you explain what is Thread-Pooling and how we can implement this concept in
Thanks, Yatish Sonkeshariya
Joined: Feb 19, 2008
Nov 14, 2011 02:31:45
Thread pool contains pre-instantiated worker threads which will execute job/task you pass to it. Thread pool minimizes the overhead of creating and destroying the threads.
Example like, web server, which takes and executes thread from thread pool for each request received.
In order to see how one can implement it, I suggest to go through JDK code for
[Freelance Web Designer]
[and "Rohan" is part of my surname]
Don't get me started about those stupid
subject: Thread Pooling and its implementation
Thread Pooling in java
Http Request Pooling!!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014