Subj : Re: Killing threads To : comp.programming.threads From : Joe Seigh Date : Tue Aug 16 2005 08:10 pm Srini Palthepu wrote: >>Why are you trying to kill threads? Is cancellation not what you want? >>If not, you need to roll your own signalling mechanism. >>Without knowing much more about your application structure, I can't >>offer better suggestions except to say that it's a thoroughly solved >>problem. > > > My application has a set of daemon threads for doing the work > that are alocated for each client request. But when a thread hangs in > the proces of serving a client for any reason, I need to cleanup. > I am trying to kill the hung thread and respawn a new one as a way > of cleaning up. > > I am using ACE toolkit thread framework that essentially > will be translated to Solaris thread sys calls at lowlevel. > pthread_cancel and non-blocking stuff where it's not cancelable by the former. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .