Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Thread Life Cycle

800344Feb 11 2010 — edited Feb 27 2010
Dear all,

I have used Java 5/6 way to run few threads as
ExecutorService executor =  Executors.newFixedThreadPool(10);
executor.submit(new MyThread());
In this case, there will be 10 threads in the thread pool.
When I submitted a thread, then one of the thread in the pool will be taken by me; After this thread is finished, it will be available again in the thread pool.

Am I right?

If it is true, then what does it mean "finished"? Does it just mean run() method finished?

Regards,

Pengyou
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2010
Added on Feb 11 2010
24 comments
373 views