Save this video — free

ECE344 Fall 2026 (Sec 1) Lec 8 - Event Loops and Process Groups

Jon Eyolfson · 53:34 · Watch on YouTube

ECE344 Fall 2026 (Sec 1) Lec 8 - Event Loops and Process Groups Watch on YouTube →

Overview

Jon Eyolfson shows how Linux programs can wait efficiently for multiple events without busy polling or unsafe signal handlers: block SIGCHLD, expose it through signalfd, and use poll alongside standard input. A working event loop then reaps all terminated children, while the lecture also explains how process groups let shells signal related processes together and how systemd cgroups provide stronger grouping.

Key takeaways

Chapters

0:00 Why Child-Exit Polling and Signal Handlers Fall Short
7:14 Block SIGCHLD and Convert Pending Signals with signalfd
14:38 Use poll to Sleep Until a File Descriptor Is Ready
22:54 Design an Event Loop for Input and Child Termination
27:29 Build the poll Loop and Launch sleep Processes
31:39 Restore Child Signal State and Reap Every Exited Process
40:42 Event Loops and the Node.js Single-Threaded Model
44:23 Signal Masks and Handlers Across execve
47:02 Signal Related Processes with Process Groups
51:27 Why systemd Uses Cgroups for Stronger Process Grouping

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.