pthread doesn't offer a sleep function. Instead, you will have to implement "sleep" using mutex, barrier or semaphore. period!
If you are not comfortable with it, then don't use pthread. sleep will work if you do fork
he sleep() function shall cause the calling thread to be suspended from execution...
what you probably need is a mean to sync the execution among threads...
Barrier
Mutex
Semaphore