Subj : Re: how to return from pthread To : comp.programming.threads From : Huub Date : Wed Jul 06 2005 08:39 am > What this does is start a thread to execute tf(), then return from > the original thread. I expect what you want to do is wait for that > background thread to finish like this: > > pthread_create(&tid, NULL, tf, NULL); > pthread_join(tid, NULL); > > ntf(); > ntf2(); This did it. Thank you. Huub .