[Java] Thread pool

Back-End/Java_1 2016. 10. 10. 15:56
donaricano-btn

Thread pool

- Thread pool represents a group of worker threads that are waiting for the job and reuse many times

- a group of fixed size threads are created

- A thread from thread pool is pulled out and assigned a job by service provider

- After completion of the job, thread is contained in the thread pool again


1. Advantage

- Better performance

- It saves time because there is no need to create new thread

2. Real time usage

- It is used in Servlet and JSP  where container creates a thread pool to process the request

3. Example



'Back-End > Java_1' 카테고리의 다른 글

[Java] Garbage Collection  (0) 2016.10.11
[Java] Shutdown Hook  (0) 2016.10.10
[Java] Daemon Thread  (0) 2016.10.10
[Java] Thread Priority  (0) 2016.10.07
[Java] Naming Thread  (0) 2016.10.07
블로그 이미지

리딩리드

,