507B SetProcessPriority¶
Stub MON 507B (327 decimal) · Mnemonic SPRIO · Group: RT Program Execution (manual section 2.10)
Available from: All programs (manual compatibility box)
Emulation source: src/handlers/mon_507B_SetProcessPriority.c
Description¶
Sets the priority for a process in the ND-500. The priorities vary from 0 to 255. The process with the highest priority is executed first.
- The priorities of background programs normally vary between 20 and 64. SINTRAN III modifies the priorities all the time. This is done to allow several jobs to share the CPU. Specify 0 to execute a process in the same way.
- With SetProcessPriority, you may fix the priority.
Parameters¶
| Name | Type | Direction | Description |
|---|---|---|---|
NewPriority |
INTEGER | In | New priority value (0-255). 0 allows SINTRAN to manage priority dynamically. |
Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.
See also¶
Compatibility¶
| Machines | Users | Programs |
|---|---|---|
| ND-500 | User RT and user SYSTEM | All programs |
The manual's compatibility box for this call, word for word.
Yes/no fields from the YAML extraction (not in the manual's words):
| ND-100 | ND-500 | User programs | RT programs | System programs |
|---|---|---|---|---|
| No | Yes | No | No | No |
Examples¶
From the manual (OCR text, not corrected).
INTEGER : NewPriority
...
Monitor_Call('SetProcessPriority', NewPriority)
INTEGER NewPriority
...
Monitor_Call('SetProcessPriority', NewPriority)
NewPriority : LONGINT;
...
SetProcessPriority(NewPriority);
01 NewPriority COMP.
...
MONITOR-CALL "SetProcessPriority" USING NewPriority.
NewPriority : W BLOCK 1
SetProcessPriority : EQU 37B9 + 507B
...
CALLG SetProcessPriority, 1, NewPriority
ndmonlib implementation¶
Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.
| Handler | mon_507B_SetProcessPriority |
| Code lines | 6 (non-blank, non-comment lines in the file) |
Source¶
SINTRAN III Monitor Calls (ND-860228.2 EN), page 463.