home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.misc
- Subject: Re: How do I set priority
- Message-ID: <1992Nov20.214737.21798@njitgw.njit.edu>
- Date: 20 Nov 92 21:47:37 GMT
- References: <oDLiuB1w165w@tcscs.UUCP>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 28
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <oDLiuB1w165w@tcscs.UUCP> zeta%tcscs@src.honeywell.com writes:
- >What I needto find out is how to set the priority of programs.
-
- You don't. Applications set their own priorities. But it isn't that
- bad. Priorities are usually dynamically altered based on usage (if
- PRIORITY is set to DYNAMIC in config.sys). So the program getting
- more I/O will get more processor.
-
- >That's the idea at least. Another way to explain is I'd like the modem
- >program to have 6 time slices, my session 4, and the background session
- >to 1 time slice.
- >
- >Is there a way to do this ??
-
- Not unless you write the modem program and your shell and all the
- background shells. There are system calls to set priorities, but I
- don't think you can change another application's priority.
-
- Look for a SETPRI package on ftp-os2.nmsu.edu. It will let you launch
- an application at a given priority, but the app is still free to
- change its own priorities once it has been launched.
-
-
- --
- |) David Charlap | .signature confiscated by FBI due to
- /|_ dic5340@hertz.njit.edu | an ongoing investigation into the
- ((|,) | source of these .signature virusses
- ~|~
-