โ Computer Science Fundamentals learning pathComputer Science Fundamentals ยท Module 5 of 10
Operating systems
The OS shares the CPU, memory and devices between programs.
๐ Key ideas
- A process is a running program; a thread is a unit of work inside it.
- The scheduler switches the CPU between processes quickly.
- Virtual memory gives each process its own address space.
- File systems organise data on disks.
- System calls let programs ask the OS for services like reading files.
๐ก Real-life example: Like a school timetable: one classroom (CPU), many classes (processes) taking turns, with a principal (OS) setting the schedule.
ProcessA running program
ThreadA unit of execution inside a process
SchedulerDecides which process runs next
System callRequest from a program to the OS