Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

#34 Event-Driven Programming Part-2: Best practices for concurrency & Active Object pattern

32.4K views on YouTube

This lesson continues the subject of event-driven programming, but this time as it applies to real-time embedded systems. Specifically, today you will learn the best practices of concurrent programming which form the “Active Object” design pattern. Later you will implement your own Active Object framework Micro-C/AO on top of the Micro-C/OS-II RTOS.

——
Resources:

Companion web page for this video course:
https://www.state-machine.com/quickstart

GitHub repository for projects for this video course:
https://github.com/QuantumLeaps/modern-embedded-programming-course

Transcript of this lesson:
https://www.state-machine.com/course/lesson34.txt

Recommended Reading:
– Herb Sutter “Prefer Using Active Objects Instead of Naked Threads”
https://www.state-machine.com/doc/Sutter2010a.pdf

– David Cummings “Managing Concurrency in Complex Embedded Systems”
https://www.state-machine.com/doc/Cummings2006.pdf

– David Kalinsky “Messages for Intertask Communication”
https://www.state-machine.com/doc/Kalinsky2010.pdf

Music credits:
The background music comes from:
https://www.bensound.com/royalty-free-music/track/straight