Subj : How to manage time-slicing in Pthreads programs? To : comp.programming.threads From : D'artagnan Date : Sat Feb 19 2005 01:08 pm I have a program spawning only two threads, say A and B. At some point, I want to put thread A into sleep and have thread B take the whole time slot. Thead A should wake up after a certain period of time or on some signals sent by Thread B. Put this in another way, I want to stop time-slicing between the two threads and resume it at any time. I am using POSIX threads on Linux 2.4. I don't have NPTL. Any suggestions? If I want to port the same code to Tru64, are there any differences? Thanks a lot. .