Save this video free

ECE344 Fall 2026 (Sec 1) Lec 5 - Process Management

Jon Eyolfson · 52:36 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jon Eyolfson explains Linux process management through process states, parent-child relationships, and the requirement that a parent collect each child’s exit status with wait or waitpid. Using /proc, htop, systemd, and xv6 examples, he shows how uncollected terminated children become zombies, how surviving children become orphans and are adopted by init or a subreaper, and how fork return values shape a process tree.

Key takeaways

Chapters

0:00 Linux Process States: R, S, D, T, and Z
6:30 PID 1, systemd, and Viewing the Process Tree
12:00 Process IDs: Uniqueness, Reuse, and Limits
14:00 Why Parents Must Collect Child Exit Status
20:15 Testing wait with fork and a Two-Second Child
25:00 Zombie Processes and an Uncollected Child
29:00 Orphan Adoption by init and Subreapers
37:00 Process Management Rules and the Fork Puzzle
40:00 Tracing Fork Clones and Independent Memory
47:00 Wait Errors, Exit Ordering, and an Orphaned Child

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

Transcript excerpt

2:32 Alrighty, welcome back to operating systems. So last lecture figured out how to create processes. This lecture we get to learn how to manage them properly. And before we get into the lecture, I'm just going to say all the terminology I'm using today is accurate as to the developers. Uh so just keep that in mind as we continue because things will get strange. So before things get strange, recall in the last lecture our state diagram of our process. We could we can start off oops we can start off creating it. Then it's in one of several states can be waiting or ready. So it's not executing yet. Then our kernel will decide whether or not it's to run on a CPU. Then after

3:22 that it could be terminated, go back to waiting and give someone else a turn on the CPU or be blocked with just a fancy word of saying it can't execute anymore. The colonel's waiting it waiting for it to finish some type of information. So we can read that process's state again from that state line of that proc file system. If we just do proc p ID some number and status again we can replace it with any process ID or self to refer to oneself. Linux uses slightly different terminology same ideas kind of different uh different levels to that generic state diagram. So if a process is running or runnable like Linux just says running or runnable that corresponds to running or that waiting state where it

4:11 could execute but it's not actually executing yet. So Linux combines them into one and then divides blocked into two. So there is S which is interruptible sleep. So it's blocked. It's waiting for something but it could be woken up and do something useful. And

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

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.