Operating Systems: Processes, Threads and Scheduling
How an operating system runs many programs at once. Follow one small print shop with a single press to learn processes, their memory layout and life cycle, threads and shared data, races, deadlock, and how a scheduler shares the CPU, with short Python and shell experiments you can run yourself.
- Beginner level
- 3 modules
- 6 lessons
- 33 quiz questions
Syllabus
01ProcessesWhat separates a program from a process, what the operating system remembers about each one, how new processes are born, and the states every process moves through.2 lessons
02ThreadsHow threads share one process's memory, what goes wrong when they update shared data without coordination, and how locks, deadlock and the kernel's view of threads fit in.2 lessons
03SchedulingHow an operating system decides which ready process gets the CPU next. Measure a schedule, work out first come first served, shortest job first, round robin and priority scheduling by hand, then check your numbers with short scripts.2 lessons