Subj : Re: thread suspend using pthreads? To : comp.programming.threads From : Joe Seigh Date : Wed Aug 31 2005 07:55 am threadnewbie wrote: > Is thread suspend supported by POSIX thread API? No. > > If not, what is the best way to implement this capability? One way > seems to be sending SIGSTOP signal to the thread from another thread. > SIGSTOP stops all threads, i.e. the process AFAIK. The best way to implement suspend is to not do it. Every threading api that has implemented suspend/resume has either deprecated it or has warnings not to use it. It's basically useless except as a mechanism to introduce race conditions. And there are a lot easier ways to create race conditions. What is it that you are trying to to incorrectly? -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .