home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man2 / nice.2 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1009 b   |  54 lines

  1. .th NICE II 8/5/73
  2. .sh NAME
  3. nice \*- set program priority
  4. .sh SYNOPSIS
  5. (nice = 34.)
  6. .br
  7. (priority in r0)
  8. .br
  9. .ft B
  10. sys nice
  11. .s3
  12. nice(priority)
  13. .ft R
  14. .sh DESCRIPTION
  15. The scheduling
  16. .it priority
  17. of the process is changed to the argument.
  18. Positive priorities get less
  19. service than normal; 0 is default.
  20. Only the super-user may specify a negative priority.
  21. The valid range of
  22. .it priority
  23. is 20 to \*-220.
  24. The value of 4 is recommended to users
  25. who wish to execute long-running programs
  26. without flak from the administration.
  27. .s3
  28. The effect of this call is
  29. passed to a child process by the
  30. .it fork
  31. system call.
  32. The effect can be cancelled by
  33. another call to
  34. .it nice
  35. with a
  36. .it priority
  37. of 0.
  38. .s3
  39. The actual running priority of a
  40. process is the
  41. .it priority
  42. argument plus a number that
  43. ranges from 100 to 119 depending on the
  44. cpu usage of the process.
  45. .sh "SEE ALSO"
  46. nice (I)
  47. .sh DIAGNOSTICS
  48. The error bit
  49. (c-bit)
  50. is set if the user requests a
  51. .it priority
  52. outside the range of 0 to 20
  53. and is not the super-user.
  54.