Helios API about running at a selected priority ...
10.2.3 The System libraries/UTILITY LIBRARY/Thread creation
This library provides a low-level thread creation interface,
essentially a veneer on top
of the Kernel routines.
The NewProcess function allocates a stack, using Malloc, and calls
The result is a pointer to the position of the first argument for the
new thread. The
functions RunProcess and ExecProcess start a thread created by
The main difference between these routines is that RunProcess starts
running at the same priority as the caller, while ExecProcess starts it
at a selected priority.
If the caller decides not to start a process, it can call ZapProcess to
The Fork function is the most frequently used interface to these
routines. It simply
calls NewProcess to allocate and initialise a stack, copies the
supplied parameters into
the new thread's stack frame, and calls RunProcess to start it.
As described in chapter 9, The Kernel, threads are only able to
they cannot be terminated externally except on task exit. A thread
NewProcess (and hence Fork) can terminate by returning from its entry
This returns to code which will deallocate the stack and halt the
process (by calling