Computer Science · Free course
Operating Systems Masterclass: From Concepts to Implementation
A comprehensive deep dive into operating system fundamentals, covering process management, synchronization, memory, and file systems. Designed for computer science students and professionals looking to master OS architecture.
by freeCodeCamp.org · Watch the original on YouTube
- intermediate
- 109 lessons
- 24.9 hours of video
- 54 days at 30 min/day
Loading course start…
What you’ll learn
- Understand the core architecture and resource management roles of an OS.
- Master CPU scheduling algorithms and process synchronization techniques.
- Analyze memory management strategies including paging, segmentation, and demand paging.
- Evaluate file system structures and disk scheduling efficiency.
- Implement and debug OS-level concepts like threads, forks, and system calls.
Your daily curriculum
A plan for about 30 minutes a day, including time for notes and questions. Adjust your pace in your own copy.
Day 1 · about 27 min · 0:00 – 21:31
1. Introduction to Operating Systems
0:00 – 7:10Understand the fundamental definition of an OS, its primary roles, and the necessary prerequisites for this course.
2. Computer Architecture and OS Basics
7:10 – 21:31Explore the Von Neumann architecture and how the CPU interacts with memory and the OS.
Day 2 · about 34 min · 21:31 – 48:55
3. Multiprogramming Operating Systems (part 1 of 5)
21:31 – 32:15Learn about the efficiency of multiprogramming and the difference between preemptive and non-preemptive systems.
4. Multiprogramming Operating Systems (part 2 of 5)
32:15 – 48:55Learn about the efficiency of multiprogramming and the difference between preemptive and non-preemptive systems.
- Preemptive vs Non-preemptive scheduling. 32:15
Day 3 · about 34 min · 48:55 – 1:16:20
5. Multiprogramming Operating Systems (part 3 of 5)
48:55 – 1:02:38Learn about the efficiency of multiprogramming and the difference between preemptive and non-preemptive systems.
6. Multiprogramming Operating Systems (part 4 of 5)
1:02:38 – 1:16:20Learn about the efficiency of multiprogramming and the difference between preemptive and non-preemptive systems.
Day 4 · about 26 min · 1:16:20 – 1:37:14
7. Multiprogramming Operating Systems (part 5 of 5)
1:16:20 – 1:30:02Learn about the efficiency of multiprogramming and the difference between preemptive and non-preemptive systems.
8. Process vs Program (part 1 of 2)
1:30:02 – 1:37:14Distinguish between a static program and an active process, and understand memory allocation at runtime.
Day 5 · about 40 min · 1:37:14 – 2:09:46
9. Process vs Program (part 2 of 2)
1:37:14 – 1:51:40Distinguish between a static program and an active process, and understand memory allocation at runtime.
- Process attributes and structure. 1:37:14
10. Process Control Block and States (part 1 of 2)
1:51:40 – 2:00:43Understand the PCB structure, process states, and the concept of process suspension.
11. Process Control Block and States (part 2 of 2)
2:00:43 – 2:09:46Understand the PCB structure, process states, and the concept of process suspension.
Day 6 · about 40 min · 2:09:46 – 2:42:11
12. Scheduling Fundamentals (part 1 of 4)
2:09:46 – 2:24:12Introduction to state queuing diagrams, schedulers, and the overhead of context switching.
- State queuing diagram overview. 2:09:46
13. Scheduling Fundamentals (part 2 of 4)
2:24:12 – 2:42:11Introduction to state queuing diagrams, schedulers, and the overhead of context switching.
Day 7 · about 32 min · 2:42:11 – 3:07:30
14. Scheduling Fundamentals (part 3 of 4)
2:42:11 – 2:53:04Introduction to state queuing diagrams, schedulers, and the overhead of context switching.
15. Scheduling Fundamentals (part 4 of 4)
2:53:04 – 3:07:30Introduction to state queuing diagrams, schedulers, and the overhead of context switching.
Day 8 · about 32 min · 3:07:30 – 3:33:36
16. FCFS Scheduling (part 1 of 5)
3:07:30 – 3:20:33Learn the First-Come, First-Served scheduling algorithm and how to calculate waiting times.
17. FCFS Scheduling (part 2 of 5)
3:20:33 – 3:33:36Learn the First-Come, First-Served scheduling algorithm and how to calculate waiting times.
Day 9 · about 32 min · 3:33:36 – 3:59:43
18. FCFS Scheduling (part 3 of 5)
3:33:36 – 3:46:40Learn the First-Come, First-Served scheduling algorithm and how to calculate waiting times.
19. FCFS Scheduling (part 4 of 5)
3:46:40 – 3:59:43Learn the First-Come, First-Served scheduling algorithm and how to calculate waiting times.
Day 10 · about 29 min · 3:59:43 – 4:23:32
20. FCFS Scheduling (part 5 of 5)
3:59:43 – 4:12:46Learn the First-Come, First-Served scheduling algorithm and how to calculate waiting times.
21. SJF and SRTF Scheduling (part 1 of 5)
4:12:46 – 4:23:32Explore Shortest Job First and Shortest Remaining Time First algorithms.
Day 11 · about 32 min · 4:23:32 – 4:49:32
22. SJF and SRTF Scheduling (part 2 of 5)
4:23:32 – 4:37:17Explore Shortest Job First and Shortest Remaining Time First algorithms.
- Preemption criteria based on burst time. 4:23:32
23. SJF and SRTF Scheduling (part 3 of 5)
4:37:17 – 4:49:32Explore Shortest Job First and Shortest Remaining Time First algorithms.
Day 12 · about 30 min · 4:49:32 – 5:14:03
24. SJF and SRTF Scheduling (part 4 of 5)
4:49:32 – 5:01:48Explore Shortest Job First and Shortest Remaining Time First algorithms.
25. SJF and SRTF Scheduling (part 5 of 5)
5:01:48 – 5:14:03Explore Shortest Job First and Shortest Remaining Time First algorithms.
Day 13 · about 33 min · 5:14:03 – 5:40:11
26. Priority Scheduling
5:14:03 – 5:28:29Understand priority-based scheduling and the issue of starvation.
27. Round Robin Scheduling (part 1 of 4)
5:28:29 – 5:40:11Learn the Round Robin algorithm, the importance of Time Quantum, and efficiency considerations.
Day 14 · about 30 min · 5:40:11 – 6:03:36
28. Round Robin Scheduling (part 2 of 4)
5:40:11 – 5:51:54Learn the Round Robin algorithm, the importance of Time Quantum, and efficiency considerations.
- Efficiency formula: Useful time / Total time. 5:46:24
29. Round Robin Scheduling (part 3 of 4)
5:51:54 – 6:03:36Learn the Round Robin algorithm, the importance of Time Quantum, and efficiency considerations.
Day 15 · about 28 min · 6:03:36 – 6:26:03
30. Round Robin Scheduling (part 4 of 4)
6:03:36 – 6:15:18Learn the Round Robin algorithm, the importance of Time Quantum, and efficiency considerations.
31. Synchronization Introduction (part 1 of 3)
6:15:18 – 6:26:03Understand process synchronization, competitive vs. cooperative processes, and the Producer-Consumer problem.
Day 16 · about 32 min · 6:26:03 – 6:51:15
32. Synchronization Introduction (part 2 of 3)
6:26:03 – 6:39:16Understand process synchronization, competitive vs. cooperative processes, and the Producer-Consumer problem.
- Producer-Consumer problem overview. 6:26:03
33. Synchronization Introduction (part 3 of 3)
6:39:16 – 6:51:15Understand process synchronization, competitive vs. cooperative processes, and the Producer-Consumer problem.
Day 17 · about 36 min · 6:51:15 – 7:20:12
34. Critical Section Problem (part 1 of 4)
6:51:15 – 7:02:00Analyze the critical section problem, necessary conditions, and requirements for a valid solution.
35. Critical Section Problem (part 2 of 4)
7:02:00 – 7:20:12Analyze the critical section problem, necessary conditions, and requirements for a valid solution.
- Requirements: Mutual exclusion, progress, bounded waiting. 7:02:00
Day 18 · about 36 min · 7:20:12 – 7:49:08
36. Critical Section Problem (part 3 of 4)
7:20:12 – 7:34:40Analyze the critical section problem, necessary conditions, and requirements for a valid solution.
37. Critical Section Problem (part 4 of 4)
7:34:40 – 7:49:08Analyze the critical section problem, necessary conditions, and requirements for a valid solution.
Day 19 · about 28 min · 7:49:08 – 8:10:51
38. Peterson's Solution (part 1 of 3)
7:49:08 – 8:00:01Study Peterson's solution for synchronization and how it guarantees mutual exclusion.
- Peterson's solution implementation. 7:49:08
39. Peterson's Solution (part 2 of 3)
8:00:01 – 8:10:51Study Peterson's solution for synchronization and how it guarantees mutual exclusion.
- Proof of mutual exclusion. 8:00:01
Day 20 · about 40 min · 8:10:51 – 8:43:10
40. Peterson's Solution (part 3 of 3)
8:10:51 – 8:25:11Study Peterson's solution for synchronization and how it guarantees mutual exclusion.
- Progress and bounded waiting analysis. 8:10:51
41. Hardware Synchronization (TSL) (part 1 of 4)
8:25:11 – 8:43:10Learn about hardware-based synchronization mechanisms like Test and Set Lock (TSL).
- TSL (Test and Set Lock) mechanism. 8:25:11
Day 21 · about 31 min · 8:43:10 – 9:08:22
42. Hardware Synchronization (TSL) (part 2 of 4)
8:43:10 – 8:50:23Learn about hardware-based synchronization mechanisms like Test and Set Lock (TSL).
- Priority inversion problem. 8:43:10
43. Hardware Synchronization (TSL) (part 3 of 4)
8:50:23 – 9:08:22Learn about hardware-based synchronization mechanisms like Test and Set Lock (TSL).
- Fetch and Add lock. 8:50:23
Day 22 · about 36 min · 9:08:22 – 9:37:30
44. Hardware Synchronization (TSL) (part 4 of 4)
9:08:22 – 9:22:45Learn about hardware-based synchronization mechanisms like Test and Set Lock (TSL).
45. Semaphores (part 1 of 13)
9:22:45 – 9:37:30Understand counting and binary semaphores, and how they manage critical sections.
- Counting Semaphores definition. 9:22:45
Day 23 · about 35 min · 9:37:30 – 10:05:58
46. Semaphores (part 2 of 13)
9:37:30 – 9:52:16Understand counting and binary semaphores, and how they manage critical sections.
- Binary Semaphores (0 or 1). 9:44:27
47. Semaphores (part 3 of 13)
9:52:16 – 10:05:58Understand counting and binary semaphores, and how they manage critical sections.
Day 24 · about 38 min · 10:05:58 – 10:36:32
48. Semaphores (part 4 of 13)
10:05:58 – 10:21:47Understand counting and binary semaphores, and how they manage critical sections.
- Deadlock in semaphore implementation. 10:05:58
49. Semaphores (part 5 of 13)
10:21:47 – 10:36:32Understand counting and binary semaphores, and how they manage critical sections.
Day 25 · about 36 min · 10:36:32 – 11:06:03
50. Semaphores (part 6 of 13)
10:36:32 – 10:51:18Understand counting and binary semaphores, and how they manage critical sections.
51. Semaphores (part 7 of 13)
10:51:18 – 11:06:03Understand counting and binary semaphores, and how they manage critical sections.
Day 26 · about 36 min · 11:06:03 – 11:35:34
52. Semaphores (part 8 of 13)
11:06:03 – 11:20:49Understand counting and binary semaphores, and how they manage critical sections.
53. Semaphores (part 9 of 13)
11:20:49 – 11:35:34Understand counting and binary semaphores, and how they manage critical sections.
Day 27 · about 36 min · 11:35:34 – 12:05:05
54. Semaphores (part 10 of 13)
11:35:34 – 11:50:20Understand counting and binary semaphores, and how they manage critical sections.
55. Semaphores (part 11 of 13)
11:50:20 – 12:05:05Understand counting and binary semaphores, and how they manage critical sections.
Day 28 · about 36 min · 12:05:05 – 12:34:36
56. Semaphores (part 12 of 13)
12:05:05 – 12:19:51Understand counting and binary semaphores, and how they manage critical sections.
57. Semaphores (part 13 of 13)
12:19:51 – 12:34:36Understand counting and binary semaphores, and how they manage critical sections.
Day 29 · about 27 min · 12:34:36 – 12:56:15
58. Deadlock Introduction (part 1 of 2)
12:34:36 – 12:45:23Learn the difference between deadlock and starvation, and necessary conditions for deadlock.
59. Deadlock Introduction (part 2 of 2)
12:45:23 – 12:56:15Learn the difference between deadlock and starvation, and necessary conditions for deadlock.
- Resource Allocation Graph. 12:45:23
Day 30 · about 32 min · 12:56:15 – 13:21:35
60. Deadlock Prevention (part 1 of 6)
12:56:15 – 13:07:03Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
- Deadlock prevention strategies. 12:56:15
61. Deadlock Prevention (part 2 of 6)
13:07:03 – 13:21:35Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
- Circular wait avoidance. 13:07:03
Day 31 · about 40 min · 13:21:35 – 13:53:53
62. Deadlock Prevention (part 3 of 6)
13:21:35 – 13:39:29Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
- Banker's Algorithm for safety. 13:21:35
63. Deadlock Prevention (part 4 of 6)
13:39:29 – 13:53:53Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
Day 32 · about 36 min · 13:53:53 – 14:22:42
64. Deadlock Prevention (part 5 of 6)
13:53:53 – 14:08:18Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
65. Deadlock Prevention (part 6 of 6)
14:08:18 – 14:22:42Explore strategies to prevent deadlock, including circular wait avoidance and the Banker's Algorithm.
Day 33 · about 37 min · 14:22:42 – 14:51:36
66. Memory Management Basics (part 1 of 8)
14:22:42 – 14:37:36Understand memory addressing, static vs dynamic loading, and the role of the linker.
- Memory addressing and capacity. 14:22:42
67. Memory Management Basics (part 2 of 8)
14:37:36 – 14:51:36Understand memory addressing, static vs dynamic loading, and the role of the linker.
- Static vs Dynamic loading. 14:44:24
Day 34 · about 39 min · 14:51:36 – 15:22:18
68. Memory Management Basics (part 3 of 8)
14:51:36 – 15:07:24Understand memory addressing, static vs dynamic loading, and the role of the linker.
- Role of the Linker. 14:51:36
69. Memory Management Basics (part 4 of 8)
15:07:24 – 15:22:18Understand memory addressing, static vs dynamic loading, and the role of the linker.
Day 35 · about 38 min · 15:22:18 – 15:52:05
70. Memory Management Basics (part 5 of 8)
15:22:18 – 15:37:11Understand memory addressing, static vs dynamic loading, and the role of the linker.
71. Memory Management Basics (part 6 of 8)
15:37:11 – 15:52:05Understand memory addressing, static vs dynamic loading, and the role of the linker.
Day 36 · about 38 min · 15:52:05 – 16:21:53
72. Memory Management Basics (part 7 of 8)
15:52:05 – 16:06:59Understand memory addressing, static vs dynamic loading, and the role of the linker.
73. Memory Management Basics (part 8 of 8)
16:06:59 – 16:21:53Understand memory addressing, static vs dynamic loading, and the role of the linker.
Day 37 · about 38 min · 16:21:53 – 16:51:47
74. Paging Concepts (part 1 of 14)
16:21:53 – 16:36:11Learn about paging, logical vs physical addresses, and page table structure.
- Paging basics and logical address space. 16:21:53
75. Paging Concepts (part 2 of 14)
16:36:11 – 16:51:47Learn about paging, logical vs physical addresses, and page table structure.
Day 38 · about 38 min · 16:51:47 – 17:21:41
76. Paging Concepts (part 3 of 14)
16:51:47 – 17:06:44Learn about paging, logical vs physical addresses, and page table structure.
77. Paging Concepts (part 4 of 14)
17:06:44 – 17:21:41Learn about paging, logical vs physical addresses, and page table structure.
Day 39 · about 38 min · 17:21:41 – 17:51:35
78. Paging Concepts (part 5 of 14)
17:21:41 – 17:36:38Learn about paging, logical vs physical addresses, and page table structure.
79. Paging Concepts (part 6 of 14)
17:36:38 – 17:51:35Learn about paging, logical vs physical addresses, and page table structure.
Day 40 · about 38 min · 17:51:35 – 18:21:28
80. Paging Concepts (part 7 of 14)
17:51:35 – 18:06:32Learn about paging, logical vs physical addresses, and page table structure.
81. Paging Concepts (part 8 of 14)
18:06:32 – 18:21:28Learn about paging, logical vs physical addresses, and page table structure.
Day 41 · about 38 min · 18:21:28 – 18:51:22
82. Paging Concepts (part 9 of 14)
18:21:28 – 18:36:25Learn about paging, logical vs physical addresses, and page table structure.
83. Paging Concepts (part 10 of 14)
18:36:25 – 18:51:22Learn about paging, logical vs physical addresses, and page table structure.
Day 42 · about 38 min · 18:51:22 – 19:21:16
84. Paging Concepts (part 11 of 14)
18:51:22 – 19:06:19Learn about paging, logical vs physical addresses, and page table structure.
85. Paging Concepts (part 12 of 14)
19:06:19 – 19:21:16Learn about paging, logical vs physical addresses, and page table structure.
Day 43 · about 38 min · 19:21:16 – 19:51:10
86. Paging Concepts (part 13 of 14)
19:21:16 – 19:36:13Learn about paging, logical vs physical addresses, and page table structure.
87. Paging Concepts (part 14 of 14)
19:36:13 – 19:51:10Learn about paging, logical vs physical addresses, and page table structure.
Day 44 · about 36 min · 19:51:10 – 20:20:06
88. Demand Paging and Replacement (part 1 of 4)
19:51:10 – 20:05:34Study demand paging, page faults, and common page replacement algorithms.
89. Demand Paging and Replacement (part 2 of 4)
20:05:34 – 20:20:06Study demand paging, page faults, and common page replacement algorithms.
- Page replacement algorithms (FIFO, LRU). 20:05:34
Day 45 · about 36 min · 20:20:06 – 20:49:01
90. Demand Paging and Replacement (part 3 of 4)
20:20:06 – 20:34:33Study demand paging, page faults, and common page replacement algorithms.
91. Demand Paging and Replacement (part 4 of 4)
20:34:33 – 20:49:01Study demand paging, page faults, and common page replacement algorithms.
Day 46 · about 27 min · 20:49:01 – 21:10:47
92. Thrashing and Locality (part 1 of 6)
20:49:01 – 21:01:40Understand the phenomenon of thrashing and how the working set model mitigates it.
- Thrashing symptoms and recovery. 20:49:01
93. Thrashing and Locality (part 2 of 6)
21:01:40 – 21:10:47Understand the phenomenon of thrashing and how the working set model mitigates it.
- Locality of reference model. 21:07:10
Day 47 · about 36 min · 21:10:47 – 21:39:38
94. Thrashing and Locality (part 3 of 6)
21:10:47 – 21:26:59Understand the phenomenon of thrashing and how the working set model mitigates it.
- Working set window size. 21:10:47
95. Thrashing and Locality (part 4 of 6)
21:26:59 – 21:39:38Understand the phenomenon of thrashing and how the working set model mitigates it.
Day 48 · about 32 min · 21:39:38 – 22:04:56
96. Thrashing and Locality (part 5 of 6)
21:39:38 – 21:52:17Understand the phenomenon of thrashing and how the working set model mitigates it.
97. Thrashing and Locality (part 6 of 6)
21:52:17 – 22:04:56Understand the phenomenon of thrashing and how the working set model mitigates it.
Day 49 · about 34 min · 22:04:56 – 22:32:26
98. File Management (part 1 of 5)
22:04:56 – 22:19:18Explore file system structures, directory management, and disk space allocation methods.
99. File Management (part 2 of 5)
22:19:18 – 22:32:26Explore file system structures, directory management, and disk space allocation methods.
- Allocation methods (Linked, Indexed). 22:19:18
Day 50 · about 34 min · 22:32:26 – 22:59:56
100. File Management (part 3 of 5)
22:32:26 – 22:46:11Explore file system structures, directory management, and disk space allocation methods.
101. File Management (part 4 of 5)
22:46:11 – 22:59:56Explore file system structures, directory management, and disk space allocation methods.
Day 51 · about 36 min · 22:59:56 – 23:28:47
102. File Management (part 5 of 5)
22:59:56 – 23:13:41Explore file system structures, directory management, and disk space allocation methods.
103. Disk Scheduling (part 1 of 4)
23:13:41 – 23:28:47Learn various disk scheduling algorithms and how to calculate seek time and performance.
Day 52 · about 32 min · 23:28:47 – 23:54:26
104. Disk Scheduling (part 2 of 4)
23:28:47 – 23:40:51Learn various disk scheduling algorithms and how to calculate seek time and performance.
- Seek time and rotational latency. 23:28:47
105. Disk Scheduling (part 3 of 4)
23:40:51 – 23:54:26Learn various disk scheduling algorithms and how to calculate seek time and performance.
Day 53 · about 35 min · 23:54:26 – 24:22:38
106. Disk Scheduling (part 4 of 4)
23:54:26 – 24:08:01Learn various disk scheduling algorithms and how to calculate seek time and performance.
107. Threads and System Calls (part 1 of 3)
24:08:01 – 24:22:38Understand user vs kernel threads, system calls, and the fork mechanism.
Day 54 · about 36 min · 24:22:38 – 24:51:51
108. Threads and System Calls (part 2 of 3)
24:22:38 – 24:37:14Understand user vs kernel threads, system calls, and the fork mechanism.
109. Threads and System Calls (part 3 of 3)
24:37:14 – 24:51:51Understand user vs kernel threads, system calls, and the fork mechanism.
This course is built from a free YouTube video by freeCodeCamp.org. The videos play on YouTube, and the lessons, summaries and quizzes are Notelify’s own study notes. Notelify isn’t affiliated with YouTube or the creator. Creators can ask us to remove a course at support@notelifyapp.com.


