Question : What is Thread-Pool?
Ans :Thread Pool allows you to maintain fixed number of threads running
assigned tasks to each thread.
Question : Advantages of Thread-Pool?
Ans : 1) It saves the machine work of creating new Threads.
2) Thread can be recycled again and again.
3) Thread pool size can be increased based on requirement.
4) Response time can be quick.
Disadvantages of Thread Pool ?
Ans :
1) Once a task is rejected because no thread is free from Thread-pool.
then it leads to high degree of rejection rate.
2) Chances of occurring the Deadlock.
3) If a task is on waiting state then that waiting time can be too long.
Hi, This blog is the place who want to prepare for programming interview with major product development companies. Apart from interview questions I would like to provide some concepts on the new technologies which I learn as part of my carrier. Thanks for visiting my Blog.
Subscribe to:
Post Comments (Atom)
AWS certification question
AWS AWS Hi! this is for questions related to AWS questions. EC2 instances EC2 storage types cold HDD : 1. Defines performance in terms...
-
Here I am going to discuss some of the differences between Text and String class in Hadoop. Text class lies in the package: import org.ap...
-
Q: What is the library you used in spring to connect to database? Spring JDBC template. Q: What and all involved in fetching the data ...
-
There are 2 ways we can load data into the HIVE Tables. In this tutorial we are loading data into the HIVE managed Table. This is my sa...
No comments:
Post a Comment