Save this video — free

ECE344 Fall 2026 (Sec 1) Lec 4 - Process Creation

Jon Eyolfson · 50:14 · Watch on YouTube

ECE344 Fall 2026 (Sec 1) Lec 4 - Process Creation Watch on YouTube →

Overview

Jon Eyolfson explains Unix process creation through the process control block, process states, and the complementary system calls fork and execve. He traces how fork duplicates a running process, how its parent and child continue independently with different return values, and how shells use fork followed by execve to launch commands; POSIX spawn offers a safer alternative for common cases.

Key takeaways

Chapters

0:00 Process Control Blocks Track Linux and xv6 Processes
2:52 The Five Process States: Ready, Running, Blocked, and Terminated
7:20 Unix Splits Process Creation Between fork and execve
12:00 What fork Copies: Memory, Registers, and File Descriptors
16:45 Reading fork's Two Return Values in a Parent-Child Example
21:30 Scheduling Makes Output Order Unpredictable; Repeated fork Multiplies Processes
27:40 Trace Process Ancestry and fork Calls with /proc and strace
33:45 Returning from a Forked Function Can Create Extra Process Generations
40:35 execve Replaces the Process Image and Starts a New Program
45:10 argv[0], Shell Redirection, and the POSIX spawn Alternative

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.