looks like the perfect usecase for threadlets. (threadlets only use up a
separate context if necessary and can be coded in the familiar
sequential/linear model)
(btw., threadlets could in theory be executed in irq context too, and if
we block on anything it gets bounced off to a real context - although
this certainly pushes the limits and there would still be some deadlock
potential for things like irq-unsafe non-sleeping locks (spinlocks,
rwlocks).)
Ingo
-