Link to home
Start Free TrialLog in
Avatar of jeffreyg
jeffreyg

asked on

Linux variant for Windows Sleep command

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.

regards,

Gordon?
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jeffreyg
jeffreyg

ASKER

Thats all I needed to know, thanks khkremer!!!! Pts are yours.

regards,

Gordon.