| Author |
Pool of threads
|
Angus Ferguson
Ranch Hand
Joined: Jun 22, 2012
Posts: 246
|
|
Hi
sorry for the "basic" question
I am in a real hurry. I have been asked to create a "queue the dao operations to a pool of 10 threads. Those background threads will actually store the user details in the database."
I have not use this approach before. I know I shouldn`t ask for code here. But could somebody post a piece of code for this functionality and explain it please
Thanks
Regards
|
 |
Jayesh A Lalwani
Bartender
Joined: Jan 17, 2008
Posts: 1275
|
|
|
look at java.util.concurrent.Executor. It contains what you need to run a queue of tasks in a thread pool
|
 |
 |
|
|
subject: Pool of threads
|
|
|