I want to suspend pthreads but apparently, there is no such function as pthread_suspend. I read somewhere about suspending pthreads using mutexes and conditions and used it
More to the point - what are you ultimately trying to do?? - I suspect the answer is not 'suspend a thread'. It may be that your program design has a problem.