Article View: comp.os.os2.programmer
Article #3122Re: How do I give a batch program high execution priority?
From: Kai Uwe Rommel
Date: Sun, 20 Dec 1992 20:53
Date: Sun, 20 Dec 1992 20:53
30 lines
1988 bytes
1988 bytes
In article <1gsr80INN7cb@gap.caltech.edu> brooke@cco.caltech.edu (Brooke Paul Anderson) writes: >I'm running some very time-intensive number-crunching programs, >and I need to know how to give them high execution priority. On >UNIX, you can give background jobs high priority -- at least, when >the machine is idle (even if the screen saver turns on), the job >uses most of the processor time. On OS/2, it seems that is not the >case (at least as things are set up by default). > >Does anyone know how I can make sure my program gets lots of processor >time even when lockup has turned on (i.e., when I am running the program >over night)? The OS/2 version of the GNU shell utilities contains a program called "nice" which does exactly what it's supposed to do - but has a few more options to deal with OS/2's different priority classes. Note, since OS/2 program always run (default) at the lowest priority in their class (unless they change that themselves), only a command like "nice -n -10 <job>" makes sense, i.e. increasing the priority as if you were root on a Unix box. Kai Uwe Rommel -- /* Kai Uwe Rommel Muenchen, Germany * * rommel@jonas.gold.sub.org Phone +49 89 723 4101 * * rommel@informatik.tu-muenchen.de Fax +49 89 723 7889 */ DOS ... is still a real mode only non-reentrant interrupt handler, and always will be. -Russell Williams
Technical Details
Message-ID:
<724884832rommel.root@jonas.gold.sub.org>Path:
arc1-ca.pugleaf.net!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!rommelReferences:
<1gsr80INN7cb@gap.caltech.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 From: rommel@jonas.gold.sub.org (Kai Uwe Rommel) Newsgroups: comp.os.os2.programmer Subject: Re: How do I give a batch program high execution priority? Message-ID: <724884832rommel.root@jonas.gold.sub.org> Date: 20 Dec 92 20:53:52 GMT References: <1gsr80INN7cb@gap.caltech.edu> Sender: root@jonas.gold.sub.org Organization: Private Lines: 30