Steveng Steveng - 1 year ago 322
C++ Question

pthread sleep linux

I am creating a program with multiple threads using pthreads.


causing the process (all the threads) to stop executing or just the thread where I am calling

caf caf
Answer Source

Just the thread. The POSIX documentation for sleep() says:

The sleep() function shall cause the calling thread to be suspended from execution...

usage: sleep(10) for 10 seconds sleep.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download