Remember
Register
1
new
Chill
new
Puzzles
new
GK
new
Sports
new
Business
Home
Questions
MCQs
Unanswered
Tags
Users
Ask a Question
Write Article
Articles
Connect to us
What is thread pool ?
+2
votes
249
views
What is thread pool ?
os
posted
Sep 12, 2013
by
Vikram Singh
Share this question
Your comment on this post:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1 Answer
+2
votes
Thread pools are a collection of a certain number of threads that are created and destroyed dynamically as per the load on the server. The thread pool boasts of a minimum number of threads that are active at all times.
When the load on the server increases beyond a certain point new threads are instantiated and added to the pool. Any incoming requests are served by threads in the pool that are idle.
Advantage : It minimizes the overhead incurred by the server to instantiate new threads and terminating threads when they have serviced a request.
Disadvantage : Threads themselves require resources such as memory. If the thread pool size is too large the thread pool puts a load on the machine’s resources.
answer
Sep 13, 2013
by
Satyabrata Mahapatra
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Preview
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Similar Questions
+3
votes
What is a Thread and how it is different from Process?
+4
votes
What is the difference between kernel level thread and user level thread?
+2
votes
What is an idle thread and does it really exist ? How can a programmer create such thread ?
+1
vote
What is the difference between Thread safety vs Re entrancy
Can you please explain with examples. Also like to know if all re-entrant code is thread safe.
0
votes
What is the meaning of thread safe code in context of OS?
...