Fireship · @fireship

Every operating system concept in one video…

Uploaded May 7, 2026 · Length 11:31

Every operating system concept in one video…

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.

  1. 0:00

    But right now, you're watching this

  2. 0:01

    video because one, God put at least one

  3. 0:04

    eyeball on your head. And two, because

  4. 0:05

    an operating system decided you could.

  5. 0:07

    It might be Mac OS if you're rich,

  6. 0:09

    Windows if you've given up on life, or

  7. 0:11

    Linux if you're part of the 3% of base

  8. 0:13

    gigachads out there. Either way, your

  9. 0:15

    CPU is running something like 400 other

  10. 0:17

    programs, if Chrome is eating 20 GB of

  11. 0:20

    RAM for no reason, and somehow your

  12. 0:22

    cursor still moves when you wiggle the

  13. 0:23

    mouse. This is not normal. It's a

  14. 0:25

    miracle performed thousands of times per

  15. 0:27

    second by the most underappreciated

  16. 0:29

    software ever written, the operating

  17. 0:31

    system. The first one, GM-NIO,

  18. 0:35

    was shipped in 1956 at General Motors

  19. 0:37

    because an engineer decided humanity had

  20. 0:39

    better things to do than hand feed punch

  21. 0:41

    cards into a two-story IBM mainframe. It

  22. 0:44

    could run exactly one program at a time,

  23. 0:46

    had no memory protection, no users, no

  24. 0:49

    files, and it still crashed less than

  25. 0:50

    Windows Millennium Edition. It's now 70

  26. 0:53

    years later, and in today's video,

  27. 0:54

    you'll finally understand how the

  28. 0:56

    bootloadader, processes, scheduling,

  29. 0:58

    threads, system calls, virtual memory,

  30. 1:00

    interrupts, privilege rings, IO, index

  31. 1:02

    nodes, and more all work together in

  32. 1:04

    perfect harmony by figuring out exactly

  33. 1:06

    what happens in your computer from the

  34. 1:08

    moment you press the power button to the

  35. 1:10

    moment you rage quit and shut it down.

  36. 1:11

    Stage one, the boot loader. You press

  37. 1:14

    the power button, electricity hits the

  38. 1:15

    motherboard, and the CPU wakes up in the

  39. 1:18

    most primitive state possible. At this

  40. 1:19

    point, there's no memory management or

  41. 1:21

    even a concept of files. It's just a

  42. 1:23

    single core executing instructions at a

  43. 1:26

    hard-coded address burned into the

  44. 1:27

    firmware. On modern machines, that's

  45. 1:29

    UEFI, but on ancient ones, it was called

  46. 1:32

    BIOS. A firmware's job is to wake up

  47. 1:34

    just enough hardware to find a disc,

  48. 1:36

    then hand it off to a bootloadader. On

  49. 1:38

    Linux, it's called Grub, the grand

  50. 1:39

    unified bootloader. On Mac, it's called

  51. 1:41

    IBO, and on Windows, it's called

  52. 1:43

    Bootmagger. But the job of the

  53. 1:45

    bootloader is simple. Find the kernel on

  54. 1:47

    disk and load it into RAM. That's the

  55. 1:49

    handoff. And at this point, the CPU is

  56. 1:51

    running kernel code with full hardware

  57. 1:53

    privileges. But everything interesting

  58. 1:54

    about your computer, like files,

  59. 1:56

    processes, windows, and so on, doesn't

  60. 1:58

    even exist yet. The colonel has to build