Cowboy Moment
Arcane
- Joined
- Feb 8, 2011
- Messages
- 4,407
You don't need hardware interrupts for multiprocessing itself - as far as you're just dealing with a cpu and memory, you only need to maintain integrity of your data structures through context switches, and for that something like a hardware mutex or an atomic conditional instruction suffices. You can do all of that synchronously, so you should be fine as long as your scheduler isn't unnecessarily complicated.
The necessity of hardware interrupts is mostly caused by I/O, which the cpu can't synchronize. In a virtual environment, you can cheat by not having an actual HD, but there's still the keyboard, and a network interface of some sort presumably.
The necessity of hardware interrupts is mostly caused by I/O, which the cpu can't synchronize. In a virtual environment, you can cheat by not having an actual HD, but there's still the keyboard, and a network interface of some sort presumably.