active-object

u/active-object


r/embedded•

Almost every RTOS kernel employs a fixed-priority, preemptive scheduler. The reason is historical and related to the invention of the Rate Monotonic Scheduling/Analysis (RMS/RMA) in the 1970's. Also, most RTOS kernels in use today are based on tasks structured as endless "mini-superloops." Such tasks must necessarily block somewhere in the loop to allow tasks of lower priority to run. Consequently, most developers believe that a blocking RTOS kernel is the only way to achieve preemptive multitasking compatible with RMS.

It turns out that blocking is by far the most *expensive* feature of a traditional RTOS, necessitating multiple private stacks for each task (RAM) and elaborate context sw

10834


r/embedded•

This new video lesson about state machines explains the "optimal" state machine implementation in C.

You will start with designing a simple "domain specific language" (DSL) for specifying state machines and then you will turn it into a C program. You will then generalize the implementation into a reusable "event processor" to include this optimal state machine implementation strategy directly in the Micro-C-AO active object framework that you've been building in this segment of lessons.

This lesson includes quite a bit of coding with the intent to give you some "pair programming" experience as you witness gradual transformation of the design into C.

Also, you will see and compare other st

354