Can someone please tell me how to implement a sleep command for Linux in the same was as the Windows variant.
The Windows version tells the current process to go to sleep and stops it for a number of milliseconds, but allows other functions/threads in the application to work in the background. How do I do this in Linux????
I want to let other threads do their bit, by waiting for one second.
I saw the sleep and usleep command in Linux but does this do what I need???
I am coding in QT3 / C++ on SuSE.