Recently I was looking for an example of a prioritized, cooperative multitasking main loop and realized it is surprisingly difficult to find one that is (1) readily available and (2) comprehensible.Sure, once you understand the concept maybe you can dig through an industrial-strength implementation...