466
|
1 <refentry id="setpr">
|
|
2 <refnamediv>
|
468
|
3 <refname>Setpr</refname>
|
|
4 <refpurpose>set process priority</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>setpr</function></funcdef>
|
575
|
11 <paramdef>int <parameter>pid</parameter></paramdef>
|
|
12 <paramdef>int <parameter>priority</parameter></paramdef>
|
466
|
13 </funcprototype>
|
|
14 </funcsynopsis>
|
|
15
|
|
16 </refsynopsisdiv>
|
|
17
|
544
|
18 <refsect1><title>Assembler Equivalent</title>
|
|
19 <para>
|
|
20 os9 F$SPRIOR
|
|
21 </para>
|
|
22 </refsect1>
|
|
23
|
466
|
24 <refsect1><title>Description</title>
|
|
25 <para>
|
575
|
26 SETPR sets the process identified by "pid" (process id) to have
|
|
27 a priority of "priority". The lowest level is 0 and the
|
|
28 highest is 255.
|
466
|
29 </para>
|
|
30 </refsect1>
|
552
|
31
|
|
32 <refsect1><title>Diagnostics</title>
|
|
33 <para>
|
|
34 The call will return -1 if the process does not have the same
|
|
35 user id as the caller.
|
|
36 </para>
|
|
37 </refsect1>
|
|
38
|
466
|
39 </refentry>
|