home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / admin / 6099 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.4 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!math.ksu.edu!deadend
  2. From: tar@math.ksu.edu (Tim Ramsey)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Can the priority of a running process be changed?
  5. Date: 7 Nov 1992 02:32:10 -0600
  6. Organization: Dept. of Mathematics, Kansas State University
  7. Lines: 23
  8. Message-ID: <1dfuuaINN7m7@hilbert.math.ksu.edu>
  9. References: <1992Nov6.182510@helix.nih.gov> <1992Nov7.061822.23947@maccs.dcss.mcmaster.ca>
  10. NNTP-Posting-Host: hilbert.math.ksu.edu
  11.  
  12. pkerr@maccs.dcss.mcmaster.ca (Paul Kerr) writes:
  13.  
  14. >rvenable@helix.nih.gov (Richard M. Venable) writes:
  15. >>Is there any way to change the priority of a process AFTER it has
  16. >>started running?  We often have naive users who run compute intensive
  17. >>tasks either in foreground or simply backgrounded with '&', and would
  18. >>like to change the priority without forcing the user to restart his
  19. >>calculation using 'nice'.
  20.  
  21.  
  22. >From the man page for renice(8)
  23. >NAME
  24. >     renice - alter nice value of running processes
  25.  
  26. Assuming, of course, that his OS has renice(8).  I wrote a renice
  27. command for SysV 2.1.2 (which doesn't have kernel support for altering
  28. the nice value of a running process).  It simply opens /dev/kmem and
  29. patches the appropriate proc table entry.
  30.  
  31. -- 
  32.     Tim Ramsey, 913.532.6750
  33.     Department of Mathematics
  34.     Kansas State University
  35.