Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#43 Active Objects in Real-Time Part-1: Run-to-Completion and RMS/RMA
Play lesson

Modern Embedded Systems Programming Course - #43 Active Objects in Real-Time Part-1: Run-to-Completion and RMS/RMA

4.0 (6)
56 learners

What you'll learn

This course includes

  • 22.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

This lesson goes back to event-driven programming and Active Objects in particular. You've been using event-driven Active Objects since lesson #34, but perhaps it's not quite clear to you what advantages they provide in real-time programming. So, this lesson ties together the concepts of event-driven programming, active objects, state machines, and real-time operating system (RTOS). Contents with Timestamps: ------------------------- 1:04 Real-time behavior of traditional blocking threads 2:55 Logic analyzer view of the traditional threads 3:06 Inexpensive logic analyzer hardware, software, and resources 3:37 Rate Monotonic Scheduling (RMS) of traditional threads 4:21 Can Active Objects be hard real-time? 4:34 Converting traditional threads to Active Objects 7:57 Allocating active object instances and event-queues 8:27 No need for private stacks in the QXK kernel 8:25 Basic threads and extended threads in QXK 9:30 Starting Active Objects (basic threads) under QXK 10:25 Declaring event signals for Active Objects 10:52 Declaring global pointers to Active Objects 11:20 Posting immutable events to Active Objets 11:46 Running the Active Object code with logic analyzer 12:00 Comparison between Active Objets and traditional threads 12:37 Run-to-Completion != Monopolizing the CPU 13:03 Summary ------- 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/lesson43.txt Inexpensive Logic Analyzer: HiLetgo USB Logic Analyzer on Amazon.com: https://www.amazon.com/dp/B077LSG5P2/ref=cm_sw_em_r_mt_dp_F5205AMDJ4C1SA1N2CS6 sigrok/PulseView software: https://sigrok.org https://github.com/sigrokproject/pulseview HiLetGo Digital Logic Analyzer and PulseView video: https://youtu.be/Gx0Qo5n-x_4 SparkFun Tutorial: "Using the USB Logic Analyzer with sigrok PulseView": https://learn.sparkfun.com/tutorials/using-the-usb-logic-analyzer-with-sigrok-pulseview Music credits: The background music comes from: https://www.bensound.com/royalty-free-music/track/straight

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere