home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
sp.zip
/
sp.doc
< prev
next >
Wrap
Text File
|
1993-09-17
|
3KB
|
97 lines
SetPriority Version 1.0 by Jens Glathe 9-17-1993
This is a utility to start a program at a defined priority. It is also able to
start a VDM (DOS-session) at a defined priority.
The initial code used as a base for sp.exe is from Scott Dudley, thanks to him.
The file sp.zip contains:
sp.exe OS/2 executable
spdos.exe DOS executable to start a DOS session with other
priority
vdosprio.sys Virtual Device Driver for the DOS sessions (MUST be
loaded to change the priority)
sp.c, sp.def source code for sp.exe
sp.rc, sp.ico recource file and icon
spdos.pas source for spdos.exe
setprio.pas,
setprio.tpu,
prioint.asm,
prioint.obj source for the library used by spdos.exe
setprdd.asm,
setprdd.inc,
setprdd.def source code for the VDD vdosprio.sys
asmsetpr.bat TASM cmdline to assemble the VDD source
linkprdd.cmd link386 cmdline to link the VDD
sp.doc this file.
Usage of sp:
SP <class>[delta] <sessiontype> <program> [args...]
<class>: n=no change, i=idle, r=regular, f=foreground, t=time critical
[delta]: Any number from -31 to 31, 0 to 31 for DOS sessions
<sessiontype>: o=OS/2 Window or PM App, d=DOS-Window, D=DOS-Fullscreen
The driver "VDOSPRIO.SYS" must have been loaded to change the priority
of a DOS session.
If a DOS session shall be started, sp invokes spdos.exe, which sets the
priority of the VDM and executes the program.
You can use spdos directly:
SPDOS <class>[delta] <program> [args...]
Requirements:
OS/2 version 2.x (32-bit app, does not run under 1.x)
sp.exe and spdos.exe must be reachable by PATH or in the same directory.
DEVICE=(path)vdosprio.sys in your config.sys file.
Notes:
The VDD hooks the DOS int 45h to get a connection to the VDM. I hope that nobody
uses this int. If there are problems with this int, recompile the VDD and the
pascal library for another int.
If you set a DOS session which has an idle loop consuming full cpu time (such
as the Turbo IDE) to time critical (highest) priority, the system gets in
trouble. Setting the priority to r31 is enough, f is also allowed.
There is another priority class for VDM's: SIMULATED INTERRUPT, but it doesn't
seem to work. Therefore the sp utility doesn't support it.
DISCLAIMER OF WARRANTIES:
(I don't write legal stuff in a foreign language, sorry):
----------------------------------------------------------------------
Ich uebernehme keinerlei Gewaehrleistung für korrekte Funktion oder
irgendwelche daraus resultierenden Schaeden oder Folgeschaeden. Es
liegt in der Natur von Geraetettreibern, dass dadurch die Integritaet
des Systems verletzt werden kann.
Licence:
--------
You are free to use and modify this source, as long as you make your
source available for public according to the usual GNU Copyleft license.
Bug reports, hints, suggestions etc.:
Send it to me:
Internet: jensajce@w271zrz.ZRZ.TU-Berlin.de
Normal letter: Jens Glathe
Keithstr. 36 Apt. 604
D-10787 Berlin
Germany
Phone: (030) 262 75 33