Slide 13
Slide 13 text
13
Preemptive scheduling
• Run any two bits of code at the same time
• Handled by the operating system
− Wouldn't be possible using pure Python
− Operating system preempts running code i.e. freezes it mid-flow
and switches the CPU's attention to something else
• Doesn't get stuck on uncooperative code