file: job.t package: muf status: alpha
switchJob operator ends the current
Muq timeslice, reliquishing control of the Muq
virtual machine to any other job waiting to run.
Since the Muq virtual machine implements
pre-emptive multitasking, there is rarely any
reason to use
One possible use is when busy-waiting on
some other job: Doing a
after each check can minimize wasted CPU
time and maximize the other job's chance
of completing the task.
In general, of course, use of busy-waiting is strongly discouraged. It is, however, occasionally useful in test or system code.
Go to the first, previous, next, last section, table of contents.