Hacker News new | ask | show | jobs
by jandrese 1041 days ago
Idle loops are harder to implement when your system doesn't have multitasking.
1 comments

Even single tasked systems like MS-DOS still had interrupts. You could HLT the processor and a keyboard interrupt could wake it straight back up and resume execution anywhere in the MS-DOS kernel. It's just that the typical TDP of a CPU back then was a couple of watts so there was literally no point in HLTing instead of busy-waiting so nobody bothered.