Results 1 to 4 of 4
I need ask a process to wait for a while / sleep for a while, then wake up.
Is there any available sleep/wait function in the kernel? Or, how to ...
- 04-07-2005 #1Just Joined!
- Join Date
- Nov 2004
- Posts
- 43
How to SLeep/Wait?
I need ask a process to wait for a while / sleep for a while, then wake up.
Is there any available sleep/wait function in the kernel? Or, how to implement such
function?
Thanks a lot!
- 04-08-2005 #2
Well is this program going to be running in user space or in kernel space? What language is the program written in?
- 04-13-2005 #3Just Joined!
- Join Date
- Nov 2004
- Posts
- 43
Thanks for your reply! It is running in the kernel space and the program is written in C.
Originally Posted by lakerdonald
- 04-13-2005 #4
add
to the code. then the function is:Code:#include <unistd.h>
Code:unsigned int seconds=3; //substitute 3 for however many seconds you'd like to sleep for sleep(seconds);


Reply With Quote
