Hacker News new | past | comments | ask | show | jobs | submit login

Idle loops are harder to implement when your system doesn't have multitasking.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: