Learning Objectives
By the end of this chapter, you will be able to:
- Define OS and kernel and their place between apps and hardware.
- Explain nine OS functions as three groups: keep the machine, serve the user, and protect and record.
- Contrast CLI and GUI on speed, resources, and automation.
- Trace booting from power on to login and distinguish cold and warm boot.
- Classify OS types by user, time, and device, with current Nepali examples.
What an operating system is
The operating system (OS) is the core system software that makes hardware usable. The kernel is the resident core that stays in memory and controls CPU, memory, and devices. Applications never touch hardware directly. They ask the OS. The OS decides.
flowchart TB
U[User] --> APP[Applications]
APP --> OS[OS kernel]
OS --> CPU[CPU]
OS --> RAM[Memory]
OS --> DISK[Storage]
OS --> IO[Devices via drivers]
What the OS does: group by purpose
Nine functions are easier to remember as three groups, not nine scattered lines.
A. Keep the machine running
| Function | What the OS actually does |
|---|---|
| Process management | Schedules which program gets CPU and for how long, creating multitasking |
| Memory management | Allocates RAM to programs, keeps them from overlapping, pages to disk when needed |
| File management | Provides the file system to create, move, copy, and delete files on storage |
| Device management | Loads device drivers that translate between OS and printers, keyboards, scanners |
B. Serve the user
| Function | Choices |
|---|---|
| User interface | Provides interaction mode. CLI or GUI. See comparison below |
| Running applications | Loads apps, gives them resources, isolates faults so one crash does not take the machine |
C. Protect and record
| Function | What the OS actually does |
|---|---|
| Security and access control | Manages accounts, passwords, permissions, firewall and update policy |
| Error detection and logging | Detects faults, writes logs for troubleshooting and audit |
An interface is not a cosmetic extra. It is the contract by which a user commands the machine.
| Aspect | CLI | GUI |
|---|---|---|
| Interaction | Type commands: dir, ls, mkdir Reports |
Click icons, windows, menus |
| Learning cost | Higher for beginners | Lower, visual |
| Speed for experts | Very fast, easy to script | Slower for bulk repetition |
| Resources | Light on CPU and memory | Needs graphics and memory |
| Example | Windows Command Prompt, Linux terminal | Windows desktop, macOS, Android |
Most modern systems keep both. GUI for daily use, CLI for automation that GUI would make tedious.
Booting: how the machine finds its mind
- BIOS or UEFI runs POST to check hardware.
- Firmware locates the boot device, usually the SSD.
- Bootloader loads the kernel into RAM.
- Kernel starts services and drivers and shows the login screen.
A cold boot starts from power off. A warm boot restarts without cutting power. Both end by loading the same kernel.
Types of operating system: group by deployment
| Group | Criterion | What it means | Typical example |
|---|---|---|---|
| Single user single task | Tasks per user | One program at a time | MS DOS historically |
| Single user multitasking | Tasks per user | Many apps at once for one person | Windows, macOS on a PC |
| Multi user | Users per machine | Many users share CPU and files | Linux server, Windows Server |
| Network or server OS | Role on network | Manages users, shares, and services | Ubuntu Server, Windows Server |
| Mobile OS | Device | Touch, battery, app store | Android, iOS |
| Real time OS | Time guarantee | Responds within strict deadline | Airbag controller, medical device, factory robot |
| Embedded OS | Purpose built into hardware | Fixed function | Smart TV, router, ATM, washing machine |
Examples by market:
- Desktop: Windows is majority in Nepali offices, macOS for design, Linux for developers.
- Mobile: Android is majority in Nepal, iOS is minority but significant in urban markets.
- Server: Linux distributions such as Ubuntu Server and Red Hat run most web servers and core banking hosts. Windows Server appears in many corporate file and directory services.
Open source versus proprietary OS
| Aspect | Open source (Linux) | Proprietary (Windows, macOS) |
|---|---|---|
| Cost | Usually free to license | Licence often included with device |
| Source | Open to view and modify | Closed |
| Support | Community or paid vendor | Vendor included |
| Software range | Wide for servers, narrower for consumer desktop apps and games | Widest desktop and game catalogue |
Self-check
Nepal worked example: OS choice for a 12 seat branch on 2081-08-20 (NPR)
A cooperative branch in Pokhara equips 12 PCs plus one file server on 2081-08-20.
Option A: Windows everywhere. Windows 11 Pro at Rs 18,500 times 12 = 222,000 plus Windows Server at Rs 85,000 plus antivirus at Rs 2,000 times 13 = 26,000. Year one OS cost = Rs 333,000. Renewal per year = antivirus 26,000 plus expected update labour 12,000 = 38,000.
Option B: Linux server plus mixed desktops. Ubuntu Server free plus 6 Linux desktops free and 6 Windows desktops at 18,500 times 6 = 111,000 plus antivirus for only Windows 2,000 times 6 = 12,000 plus Linux support contract Rs 36,000 per year inclusive of patching for server and desktops. Year one = 111,000 plus 12,000 plus 36,000 = Rs 159,000. Renewal = 12,000 plus 36,000 = 48,000.
Cash saves Rs 174,000 in year one with B. The deciding factor is not cash alone but driver and application compatibility and who will patch the Linux desktops when staff change. The branch chooses B for back office where LibreOffice is sufficient and keeps A for front office where the IRD approved billing and Tally macros need Windows. It also budgets to keep automatic updates on, since an unpatched OS is the simplest route for malware in Nepal today.
Example 1: On 2081-08-20 ask audit first: does every desktop and server show a licensed OS with patch date within 30 days, and does the backup job complete before the day end interest posting? An unpatched OS is not a technical risk. It is a controls failure that logs will prove.
Example 2: On 2081-08-20 ask throughput first: does the chosen OS run the billing printer driver and barcode scanner without workaround, and can a new cashier be on the till in under an hour? If not, the saving in licence is lost at the counter.
Summary
- The OS kernel is the resident manager between applications and hardware.
- Nine functions group into keeping the machine, serving the user, and protecting and recording.
- Booting moves from firmware POST to bootloader to kernel to login.
- OS types map to use: single versus multi user, server versus embedded, real time where deadlines are life critical.
Key Takeaways
- Without an OS a PC can only show firmware. It cannot manage files or run applications.
- CLI and GUI serve different users. Keep both, choose by task.
- Most Nepali offices run Windows desktops, most phones run Android, most web servers run Linux.
- Patching is part of the OS function, not optional hygiene.
Discussion Questions
- Why does the OS keep applications from touching hardware directly?
- When is a CLI still faster than a GUI for an expert?
- How does a server OS differ from a desktop OS that happens to share files?
Exercises
Short answer
- Define OS and kernel with the hardware to application chain.
- List three functions that keep the machine running and one that protects it.
- Differentiate cold boot from warm boot.
Long answer
- Group and explain the nine OS functions with the CLI versus GUI table and a Nepal example.
- Classify OS types by user, time, and device, and justify the Pokhara branch choice on 2081-08-20 with NPR math and the trade off between licence cost and driver and application compatibility.


