Back to Browse

How the Shell Runs Programs | fork, exec, wait : OS - Part 3

119 views
Mar 12, 2026
36:41

In this video, we explore one of the most important parts of operating systems: Process APIs. How does the OS create new processes? How does the shell run programs like ls or wc? What actually happens when you type a command in the terminal? All of this is powered by three fundamental system calls: • fork() – create a new process • exec() – run a new program in a process • wait() – synchronize parent and child processes This video walks through these concepts using visual explanations and real code demos. Github Repo: https://github.com/agg-yash/os-examples 00:00 Fork – Creating Processes 13:10 Wait – Synchronizing Processes 15:25 Exec – Running a New Program 23:10 Motivation for these API designs #operatingsystems #linux #systemsprogramming #fork #exec #wait

Download

1 formats

Video Formats

360pmp426.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How the Shell Runs Programs | fork, exec, wait : OS - Part 3 | NatokHD