Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;ppri (process_priority), revision 1.0, 88/01/21
ppri (process_priority) -- Set or display process priority.
usage:  ppri [process_name...|-uid uid_high.uid_low] [-lo n] [-hi n] {CL}



DESCRIPTION
     The process priority is an integer ranging from 1 (low) to 16 (high).
     When the operating system decides which process to run next, it chooses
     the process that currently has the highest priority.  As a process
     executes, its priority increases as it waits for events (such as keyboard
     input) and decreases as it computes for long periods without waiting.  By
     default, the priority is bounded by the range 3 through 14 when a process
     is created.  The ppri command lets you change these bounds to any other
     numbers in the range of 1 to 16.

     All processes inherit the priority settings of their parent processes.

ARGUMENTS
     process_name... (optional)
               Specify name of process whose priority is to be set or
               displayed.  Multiple names are permitted.  If the process does
               not have a name, use the -uid option (below).

               Default if omitted:  use current process

OPTIONS
     If no options are specified, the current priority bounds are displayed.

     -lo n     Set priority lower boundary.  n must be in the range 1-16
               inclusive.  If this option is omitted, the lower boundary is
               set to 3.

     -hi n     Set priority upper boundary.  n must be in the range 1-16
               inclusive.  If this option is omitted, the upper boundary is
               set to 14.

     -u[id] uid_high.uid_low
               Specify the UID of an unnamed process whose priority is to be
               set or displayed.  The UID can also be separated by a space
               (uid_high uid_low).

EXAMPLES
     1. Display defaults for current process

        $ ppri
         my_shell: minimum_priority = 3, maximum priority = 14


     2. Restrict process_7 to low priorities

        $ ppri process_7 -lo 1 -hi 4


     3. Current process will always have priority 12

        $ ppri -lo 12 -hi 12



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026