What is an operating system?
An operating system (OS) is the software that manages a computer's hardware and gives programs a safe, shared way to use it. Its core, the kernel, schedules the CPU, manages memory, runs the file system and talks to devices through drivers.
Programs never touch hardware directly. They ask the kernel through system calls, and the CPU enforces the boundary: user code runs in a restricted mode, the kernel in a privileged one. Windows, macOS, Linux, Android and iOS all follow this design.
Four processes, one CPU. Who goes first?
Each process arrives at a set time and needs a certain amount of CPU time. Pick a scheduling algorithm and change the burst times to see who waits, and for how long.
When memory is full, which page goes?
A program asks for pages of memory in the order along the top. Only a few fit in RAM (the frames). A request for a page that isn't loaded is a page fault, which means a slow trip to disk. Different eviction rules cause different numbers of faults.