On Jan 9, 2019, at 2:54 PM, dwight via cctalk
<cctalk at classiccmp.org> wrote:
...
Of course in an embedded processor you can run in kernel mode and busy wait
if you want.
Yes, and that has a number of advantages. You get well defined latencies and everything
that the program does gets done within bounded time (if you do the simple thing of putting
work limits on all your work loops). Knowing that your real time system can't ever
block a task is a very good property. By contrast, with interrupts, never mind priority
schedulers, it's much harder to ensure this.
I've built network switches whose data paths were coded this way, and they are both
simple and reliable.
paul