home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.21 / text0122.txt < prev    next >
Encoding:
Text File  |  1990-10-26  |  1.3 KB  |  40 lines

  1. Submitted-by: willcox@urbana.mcd.mot.com (David A Willcox)
  2.  
  3. In article <530@usenix.ORG> jsh@usenix.org (Jeffrey S. Haemer) writes:
  4.  
  5. >A few utilities remain contentious:
  6.  
  7. >   + nice, renice: These require underlying functionality absent from
  8. >     POSIX.1, although POSIX.4 has setscheduler(), which allows
  9. >     applications to set priority and scheduling algorithms.
  10.  
  11. A point of clarification:  These utilities, as defined in 1003.2a,
  12. do NOT require any functionality that is not in 1003.1.  Both can be
  13. implemented on a bare-bones 1003.1 system as having no effect on 
  14. execution priority.  The following, for example, is a valid
  15. shell script implementation of nice:
  16.  
  17.     case $1 in
  18.         -n) shift;shift;;
  19.         -*  shift;;
  20.     esac
  21.     exec $*
  22.  
  23. renice is a little more complicated, but not much.  (It should just have
  24. to check for valid arguments.)
  25.  
  26. So saying that you can't implement this on a 1003.1 system is not only
  27. a red herring, it simply isn't true.
  28.  
  29. Providing these utilities allows well-mannered applications to make use
  30. of the priority manipluation features that are already provided by most
  31. implementations.
  32.  
  33. David A. Willcox        "Just say 'NO' to universal drug testing"
  34. Motorola MCD - Urbana        UUCP: ...!uiucuxc!udc!willcox
  35. 1101 E. University Ave.        INET: willcox@urbana.mcd.mot.com
  36. Urbana, IL 61801        FONE: 217-384-8534
  37.  
  38. Volume-Number: Volume 21, Number 122
  39.  
  40.