Important Facts
Software, Operating Systems & Applications · Study material
How an operating system works
What an operating system does
- Process management – decides which program gets the CPU and for how long (scheduling).
- Memory management – allots RAM to programs and takes it back.
- File management – organises files and folders on disks through a file system.
- Device management – controls hardware through device drivers.
- Security and the user interface – logins and permissions; a GUI (icons and windows) or a CLI (typed commands).
The kernel is the core of the operating system that talks directly to the hardware. The shell is the layer that takes the user's commands and passes them to the kernel.
Types of operating systems
| Type | Idea |
|---|---|
| Batch | Similar jobs are grouped and run one after another without user interaction |
| Multiprogramming | Several programs are kept in memory so the CPU is never idle |
| Time-sharing / multitasking | Each task or user gets a small slice of CPU time in turn |
| Multiprocessing | Two or more CPUs work together |
| Real-time | Must respond within a fixed time – missile guidance, airbags, air-traffic control |
| Distributed | Several networked computers appear to work as one |
Key terms
- Process – a program in execution. Its states: new, ready, running, waiting, terminated.
- Scheduling – FCFS (first come, first served), SJF (shortest job first), priority and round robin (a fixed time slice for each process).
- Spooling (Simultaneous Peripheral Operations On-Line) – jobs, such as print jobs, are queued on disk for a slow device.
- Deadlock – two or more processes wait for ever, each holding a resource the other needs.
- Thrashing – the system spends more time swapping pages than doing useful work.
- Interrupt – a signal telling the CPU that something needs attention at once.
OS history, mobile systems and file systems
Operating system milestones
| Year | Milestone |
|---|---|
| 1969 | Unix developed at AT&T Bell Labs by Ken Thompson and Dennis Ritchie |
| 1973 | Xerox Alto, built at Xerox PARC, shows a graphical user interface |
| 1981 | MS-DOS ships with the IBM PC – a command-line system |
| 1983 | Richard Stallman announces the GNU project for free software |
| 1984 | Apple Macintosh brings the GUI and mouse to the mass market |
| 1985 | Windows 1.0 released |
| 1995 | Windows 95 introduces the Start button and taskbar |
| 2001 | Windows XP and Mac OS X released |
| 2007 | iPhone launched with what became iOS; C-DAC releases BOSS Linux |
| 2008 | First Android phone (HTC Dream) |
| 2015 / 2021 | Windows 10 / Windows 11 |
| 2023 | BharOS, a mobile OS from an IIT Madras-incubated firm, is unveiled |
Mobile operating systems
- Android – owned by Google (bought in 2005), built on the Linux kernel and released as open source (AOSP). Versions were named after desserts – Cupcake, KitKat, Oreo, Pie – until Android 10 in 2019.
- iOS – Apple's system for the iPhone. Others: HarmonyOS (Huawei), and the historic Symbian (Nokia) and BlackBerry OS.
File systems
NTFS – modern Windows · FAT32 – pen drives and memory cards; no single file over 4 GB · ext4 – Linux · APFS – Apple devices since 2017.