F$AProc
From NitrOS-9
Insert Process | Inserts a process into the queue for execution |
OS9 F$AProc 103F 2C |
Entry Conditions
X address of the process descriptor
Error Output
CC carry set on error
B error code, if any
Additional Information
- The Insert Process system call inserts a process into the active process queue so that NitrOS-9 can schedule the process for execution.
- NitrOS-9 sorts all processes in the queue by process age (the count of how many process switches have occurred since the process’s last time slice). When a process is moved to the active process queue, NitrOS-9 sets its age according to its priority—the higher the priority, the higher the age.
- An exception is a newly active process that was deactivated while in the system state. NitrOS-9 gives such a process higher priority because the process usually is executing critical routines that affect shared system resources.
krn