Processes vs Threads: How Linux Really Works

Pubblicato il: 31 marzo 2026
sul canale di: Computer Science: Under The Hood
92
like

Processes and threads are not the same thing — and the difference is enforced in hardware.

In this video we go under the hood of how Linux creates processes with fork(), how threads use clone(CLONE_VM) to share memory, what the CFS scheduler actually does, and why a context switch between processes is more expensive than between threads. We also cover real-world examples like Chrome's multi-process architecture, the Python GIL, and Apache vs Nginx — plus the gotchas that silently ruin production systems.

⏱ Chapters:
0:00 Hook
0:43 What is a process and a thread?
3:31 How fork() and clone() actually work
5:12 The CFS scheduler and context switches
6:58 Real-world: Chrome, Python GIL, Nginx
8:39 Gotchas: deadlocks, race conditions, zombies

🔔 Subscribe for more CS explained under the hood.

#Linux #ComputerScience #SoftwareEngineering


In questa pagina del sito puoi guardare il video online Processes vs Threads: How Linux Really Works della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Computer Science: Under The Hood 31 marzo 2026, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 92 volte e gli è piaciuto like spettatori. Buona visione!