CSC 394 · Operating Systems
Our notes
2 min readWhat an OS is
An operating system (OS) is the software that manages a computer's hardware and provides services to programs and users. Two views:
- Resource manager: shares the CPU, memory, disks and devices fairly and efficiently among programs.
- Extended (virtual) machine: hides messy hardware details behind simple services (open a file instead of driving a disk controller).
Examples: Windows, Linux, macOS, UNIX, Android (Linux kernel), iOS.
Functions of an OS
- Process management: create, schedule and end programs; synchronisation and communication.
- Memory management: give memory to programs, protect it, take it back.
- File management: create, delete, organise files and directories; access control.
- Device (I/O) management: drivers, buffering, spooling.
- Secondary storage management: free space, disk scheduling.
- Security and protection: logins, permissions.
- User interface: command line (shell) or graphical (GUI).
- Accounting and error handling.
Types of operating systems
| Type | Idea | Example |
|---|---|---|
| Batch | jobs grouped and run one after another with no user interaction | early mainframes, payroll runs |
| Multiprogramming | several programs in memory; when one waits for I/O, the CPU runs another | keeps the CPU busy |
| Time-sharing (multitasking) | CPU switches between users/programs so fast each seems to have its own machine (time slices) | UNIX, modern desktops |
| Multiprocessing | two or more CPUs share memory and work together | multi-core PCs, servers |
| Real-time | must respond within strict time limits; hard (missing a deadline is failure: airbag, pacemaker) or soft (video streaming) | VxWorks, FreeRTOS |
| Distributed | many networked computers appear as one system | cloud clusters |
| Network OS | shares files and printers over a network | Windows Server |
| Mobile / embedded | for phones and devices, saves battery | Android, iOS |
Key terms
- Kernel: the core of the OS, always in memory, running in privileged kernel mode; user programs run in user mode and must ask the kernel (through system calls) to touch hardware.
- Spooling (simultaneous peripheral operation on-line): output for a slow device (printer) is stored on disk and printed in turn.
- Booting: the firmware (BIOS/UEFI) loads a bootstrap loader, which loads the kernel.
History in brief
No OS (1940s, programs entered by hand) → batch systems (1950s) → multiprogramming and time-sharing (1960s; IBM OS/360, MULTICS) → UNIX (1969, Bell Labs) → personal computers (MS-DOS 1981, Windows, Macintosh) → Linux (1991) → mobile OS (Android, iOS) and cloud.
Exams usually ask: define an OS (two views); list and explain its functions; compare batch, multiprogramming, time-sharing and real-time; hard vs soft real-time; spooling; kernel vs user mode.
Common mistake: mixing up multiprogramming (several programs in memory to keep one CPU busy) with multiprocessing (several CPUs).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick OSTEP: Introduction to Operating Systems
Free chapter PDF from the authors' site (156 KB).
(opens pages.cs.wisc.edu in a new tab)
-
Introduction to Computer Science, 6.1 What Is an Operating System?
(opens openstax.org in a new tab)
OpenStax, Introduction to Computer Science, 6.1 What Is an Operating System?, CC BY-NC-SA 4.0 · licence
-
Operating system
(opens en.wikipedia.org in a new tab)
Wikipedia, Operating system, CC BY-SA 4.0 · licence
Watch
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.