Save this video — free

ECE344 Fall 2026 (Sec 1) Lec 13 - Threads

Jon Eyolfson · 1:06:38 · Watch on YouTube

ECE344 Fall 2026 (Sec 1) Lec 13 - Threads Watch on YouTube →

Overview

Jon Eyolfson explains how threads differ from processes and how concurrency differs from parallelism, then demonstrates thread creation, scheduling, termination, and cleanup with POSIX Pthreads. The lecture emphasizes the trade-off between threads’ shared memory and low context-switch cost and processes’ isolation, and uses runnable C examples to show why joining threads and passing arguments with safe lifetimes matter.

Key takeaways

Chapters

0:00 From Processes to the Threads Unit
6:50 Concurrency vs. Parallelism Through Dinner Tasks
11:26 A Thread Is a Process’s Execution Context
13:15 Thread-Local State, Concurrency, and Multicore Execution
19:30 Choosing Between Processes and Threads
24:24 Pthreads Setup and the `pthread_create` Interface
30:10 Scheduling Order and Why Returning from `main` Matters
36:50 Joining Threads and Reclaiming Their Results
43:00 Linux `clone` and the Different Meanings of Thread Exit
49:00 Detached Threads and Pthread Stack Attributes
54:10 Creating Four Workers and Passing Each an ID
1:00:00 Why Passing a Stack Variable’s Address Breaks
1:04:50 Why Casting Integer IDs to Pointers Is Not Portable

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.