Z80 Assembly 54: Process Scheduling and Cooperative Multitasking
The Challenge of Multitasking The Z80 is a single-core processor; it can only execute one instruction at a time. Multitasking is the technique of quickly switching the CPU’s attention between several active programs (processes), making it appear as though they are all running simultaneously. Cooperative Multitasking (The Z80 Standard) The simplest and most common form of multitasking on an 8-bit OS is Cooperative Multitasking. The Principle: The CPU runs a program until that program voluntarily yields (gives up control) back to the OS scheduler. ...