News for hackers. Stuff that matters.
Re:Protothreads: Lightweight Stackless Threads in C by alexhutcheson on Thursday May 16, 2019 @10:53AM (#19929559)
One important difference is that in the MCU world interrupt handlers need to be really short and fast, because often various classes of interrupts are blocked from occurring while an interrupt handler is running. A common pattern is for the interrupt handler to just set some bits to say “this occurred” and return. The bits are then checked and handled in the main loop.

There are no comments on this comment yet.