home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7152 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!uwm.edu!cs.utexas.edu!asuvax!chnews!hfglobe!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
  2. From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: How do I give a batch program high execution priority?
  5. Message-ID: <724884832rommel.root@jonas.gold.sub.org>
  6. Date: 20 Dec 92 20:53:52 GMT
  7. References: <1gsr80INN7cb@gap.caltech.edu>
  8. Sender: root@jonas.gold.sub.org
  9. Organization: Private
  10. Lines: 30
  11.  
  12. In article <1gsr80INN7cb@gap.caltech.edu> brooke@cco.caltech.edu (Brooke Paul Anderson) writes:
  13. >I'm running some very time-intensive number-crunching programs,
  14. >and I need to know how to give them high execution priority.  On
  15. >UNIX, you can give background jobs high priority -- at least, when
  16. >the machine is idle (even if the screen saver turns on), the job
  17. >uses most of the processor time.  On OS/2, it seems that is not the
  18. >case (at least as things are set up by default).
  19. >
  20. >Does anyone know how I can make sure my program gets lots of processor
  21. >time even when lockup has turned on (i.e., when I am running the program
  22. >over night)?
  23.  
  24. The OS/2 version of the GNU shell utilities contains a program called
  25. "nice" which does exactly what it's supposed to do - but has a few
  26. more options to deal with OS/2's different priority classes.
  27.  
  28. Note, since OS/2 program always run (default) at the lowest priority
  29. in their class (unless they change that themselves), only a command
  30. like "nice -n -10 <job>" makes sense, i.e. increasing the priority as
  31. if you were root on a Unix box.
  32.  
  33. Kai Uwe Rommel
  34.  
  35. --
  36. /* Kai Uwe Rommel                                      Muenchen, Germany *
  37.  * rommel@jonas.gold.sub.org                       Phone +49 89 723 4101 *
  38.  * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */
  39.  
  40. DOS ... is still a real mode only non-reentrant interrupt
  41. handler, and always will be.                -Russell Williams
  42.