Subj : Re: thread Cleanup handler is not called To : comp.programming.threads From : neelapune Date : Wed Feb 16 2005 09:01 pm Hi Schlick, Thanks so much, so stupid of me!!. Neela "J.S." wrote in message news:<1108545979.069336.121410@z14g2000cwz.googlegroups.com>... > your program exits before the thread cancellation happens !! > > Neelakantan wrote: > > { > > printf("Thread Cancelation Failed\n"); > > return 0; > > } > > Add here a additional sleep or a pthread_join(), > > > return 0; > > } > > -------------------------------------Code > > Ends--------------------------------- .