SLEEP.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." Copyright (c) 1980 Regents of the University of California.
  2. ." All rights reserved.  The Berkeley software License Agreement
  3. ." specifies the terms and conditions for redistribution.
  4. ."
  5. ." @(#)sleep.3 6.2 (Berkeley) 5/12/86
  6. ."
  7. .TH SLEEP 3  "May 12, 1986"
  8. .UC 4
  9. .SH NAME
  10. sleep - suspend execution for interval
  11. .SH SYNOPSIS
  12. .nf
  13. .ft B
  14. #include <unistd.h>
  15. unsigned int sleep(unsigned int fIsecondsfP)
  16. .fi
  17. .SH DESCRIPTION
  18. The current process is suspended from execution for the number
  19. of seconds specified by the argument.
  20. .PP
  21. The routine is implemented by setting an alarm timer
  22. and pausing until it occurs.
  23. The previous state of this timer is saved and restored.
  24. If the sleep time exceeds the time to the expiration of the
  25. previous timer,
  26. the process sleeps only until the signal would have occurred, and the
  27. signal is sent 1 second later.
  28. .SH "SEE ALSO"
  29. .BR alarm (2),
  30. .BR pause (2).