Assigning the main thread to a thread pool
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rajeev_Unnikrishnan
Posted On:   Sunday, October 16, 2005 01:46 AM


Could somebody please tell me how to place the main thread in the java program to a pool of threads. I mean lets say that the main thread creates some N-1 child threads sharing some shared memory space.Instead of creating the N-1 child threads and exitting, I want the main thread to create the N-1 child threads and later make the main thread become a part of the child threads i.e it should perform the same function as the child threads.

Re: Assigning the main thread to a thread pool

Posted By:   Anonymous  
Posted On:   Tuesday, December 27, 2005 02:02 PM

kaun bola hai?

Re: Assigning the main thread to a thread pool

Posted By:   Sanjay_Chittar  
Posted On:   Friday, December 23, 2005 01:54 AM

AFAIK, when the main thread exits, all the child threads are killed. So I am not sure why you want to exit from the main thread.
About | Sitemap | Contact