Bookmark Topic Watch Topic
  • New Topic

A Thread pool  RSS feed

 
Costa Lamona
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

I found my self understanding what is asynchronous thread rather than doing what I really want.

I always thought that if you have a synchronous thread that will run and stop according to (say events), then it will be a good idea to not recreate that thread again. just ask a thread pool to reinitialize that created thread and re-Start it.

What is the Java thread pool that will allow me to reuse a thread (regular nice synchronous thread), or I should use a flag?, but what if I have 10 or 15 threads, 15 flags will complex the program and make it buggy.

Code example will be great.

Thanks
 
Henry Wong
author
Sheriff
Posts: 23034
120
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please see your other topic....

http://www.coderanch.com/t/234285/threads/java/asynchronous-thread

I will close this topic.

Henry
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!