I read in another thread that using sleep or usleep causes not only one thread to sleep, but the whole program. Is there an alternative way to make just the one thread its called from sleep instead of the whole program?