home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / misc / 37212 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.6 KB

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