| | |
Sleep Command in UNIX Shell Scripting
![]() |
•
•
Join Date: May 2004
Posts: 178
Reputation:
Solved Threads: 10
The sleep command in unix is guaranteed to sleep a minimum.
Due to the way quanta (time slices) work in OS schedulers, other processes may get the cpu ahead of the sleeper who just awoke.
ie., there is no guarantee of an upper limit. sleep 1 may last longer than 1 second.
Linux sleep calls nanosleep - read the man page for that.
Due to the way quanta (time slices) work in OS schedulers, other processes may get the cpu ahead of the sleeper who just awoke.
ie., there is no guarantee of an upper limit. sleep 1 may last longer than 1 second.
Linux sleep calls nanosleep - read the man page for that.
![]() |
Similar Threads
- Implementing a unix shell running commands (Java)
- help... for LINUX/UNIX users only (Shell Scripting)
- new to shell scripting, need some help (Shell Scripting)
- Making a UNIX Shell, so inexperienced at it (C++)
- i want help about the Simulate a Linux/UNIX shell, called MASH in the C (C)
- "shell scripting tutorials?" (Shell Scripting)
- Bourne / Bash Unix/Linux shell scripting tutorial (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: Help with getopt/getopts
- Next Thread: Writing to a FAT12 boot sector
| Thread Tools | Search this Thread |





