I\'m fairly new to C but writing a small multithreaded application. I want to introduce a delay to a thread. I\'d been using \'usleep\' and the behavior is what I desire -
From the manual page: This function is obsolete. Use nanosleep instead.