Subj : Re: thread Cleanup handler is not called To : comp.programming.threads From : J.S. Date : Wed Feb 16 2005 01:26 am 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--------------------------------- .