Fireship · @fireship
Every operating system concept in one video…
Uploaded May 7, 2026 · Length 11:31
Summary
This video explains the operating system concepts, from boot loader to device drivers and interrupts, in a comprehensive and easy-to-understand way.
- operating system concepts
- boot loader
- kernel
- privilege rings
- virtual memory
- file system
- device drivers
- interrupts
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
But right now, you're watching this
- 0:01
video because one, God put at least one
- 0:04
eyeball on your head. And two, because
- 0:05
an operating system decided you could.
- 0:07
It might be Mac OS if you're rich,
- 0:09
Windows if you've given up on life, or
- 0:11
Linux if you're part of the 3% of base
- 0:13
gigachads out there. Either way, your
- 0:15
CPU is running something like 400 other
- 0:17
programs, if Chrome is eating 20 GB of
- 0:20
RAM for no reason, and somehow your
- 0:22
cursor still moves when you wiggle the
- 0:23
mouse. This is not normal. It's a
- 0:25
miracle performed thousands of times per
- 0:27
second by the most underappreciated
- 0:29
software ever written, the operating
- 0:31
system. The first one, GM-NIO,
- 0:35
was shipped in 1956 at General Motors
- 0:37
because an engineer decided humanity had
- 0:39
better things to do than hand feed punch
- 0:41
cards into a two-story IBM mainframe. It
- 0:44
could run exactly one program at a time,
- 0:46
had no memory protection, no users, no
- 0:49
files, and it still crashed less than
- 0:50
Windows Millennium Edition. It's now 70
- 0:53
years later, and in today's video,
- 0:54
you'll finally understand how the
- 0:56
bootloadader, processes, scheduling,
- 0:58
threads, system calls, virtual memory,
- 1:00
interrupts, privilege rings, IO, index
- 1:02
nodes, and more all work together in
- 1:04
perfect harmony by figuring out exactly
- 1:06
what happens in your computer from the
- 1:08
moment you press the power button to the
- 1:10
moment you rage quit and shut it down.
- 1:11
Stage one, the boot loader. You press
- 1:14
the power button, electricity hits the
- 1:15
motherboard, and the CPU wakes up in the
- 1:18
most primitive state possible. At this
- 1:19
point, there's no memory management or
- 1:21
even a concept of files. It's just a
- 1:23
single core executing instructions at a
- 1:26
hard-coded address burned into the
- 1:27
firmware. On modern machines, that's
- 1:29
UEFI, but on ancient ones, it was called
- 1:32
BIOS. A firmware's job is to wake up
- 1:34
just enough hardware to find a disc,
- 1:36
then hand it off to a bootloadader. On
- 1:38
Linux, it's called Grub, the grand
- 1:39
unified bootloader. On Mac, it's called
- 1:41
IBO, and on Windows, it's called
- 1:43
Bootmagger. But the job of the
- 1:45
bootloader is simple. Find the kernel on
- 1:47
disk and load it into RAM. That's the
- 1:49
handoff. And at this point, the CPU is
- 1:51
running kernel code with full hardware
- 1:53
privileges. But everything interesting
- 1:54
about your computer, like files,
- 1:56
processes, windows, and so on, doesn't
- 1:58
even exist yet. The colonel has to build


