Foundation Of Information TechnologyUnit 512 min read
Operating Systems & System Software: Core Functions, Memory, and Software Types
Unit 5 of Foundation Of Information Technology: Explores operating systems as the bridge between hardware and software, covering their core functions, memory hierarchy, system software types, and real-world applications in Nepal’s banking, e-commerce, and telecom sectors.
TAKEAWAYS:
- An operating system (OS) is the software layer that manages hardware, processes, and user interfaces (e.g., Windows, Linux, Android).
- Memory hierarchy (registers → cache → RAM → SSD → HDD) balances speed and cost, with primary memory (RAM) acting as volatile workspace and secondary memory (HDD/SSD) storing persistent data.
- System software (OS, utilities, drivers) enables hardware interaction, while application software (e.g., eSewa, Daraz) solves user-specific tasks.
- Process management (scheduling, multitasking) and file management (hierarchical structures) are critical OS functions that optimize system performance.
- Real-world tie-ins: NTC’s network OS routes traffic, Ncell’s mobile OS manages calls/data, and banks use OS-driven transaction processing for security and speed.
- Exam focus: Define OS functions, compare memory types, and link software types to Nepalese apps (e.g., Khalti’s payment software vs. Pathao’s ride-hailing app).
1. Introduction to Operating Systems
An operating system (OS) is the foundational software that controls a computer’s hardware, manages software execution, and provides an interface for users and applications. Without an OS, a computer would be a useless collection of hardware components.
Key Roles of an OS
flowchart TD
A["Hardware Abstraction"] --> B["Manages CPU, memory, storage"]
B --> C["Process Management"]
C --> D["Multitasking & Scheduling"]
D --> E["File System Management"]
E --> F["User Interface"]
F --> G["Security & Access Control"]
G --> H["Device Drivers"]
H --> I["Networking"]Worked Example: NTC’s Network OS Nepal Telecommunications Corporation (NTC) relies on its network OS to:
- Route traffic between routers/switches (like a traffic cop for data packets).
- Prioritize critical calls (e.g., emergency services) over regular data.
- Manage bandwidth to prevent congestion during peak hours (e.g., during exams or festivals).
Why it matters: Without an OS, NTC’s infrastructure would collapse under demand, leading to dropped calls or slow internet—just like how a car stalls without an engine (OS).
2. Functions of an Operating System
An OS performs core functions to ensure smooth operation. Below is a comparison of user-facing vs. system-facing roles:
| Function | User-Facing | System-Facing |
|---|---|---|
| Process Management | Running apps (e.g., WhatsApp, YouTube) | Scheduling CPU time, handling priorities |
| Memory Management | Loading games or videos | Allocating RAM, swapping data to disk |
| File System Management | Saving documents (e.g., Google Docs) | Organizing data on HDD/SSD (e.g., NTFS) |
| Device Management | Printing (via printer driver) | Communicating with hardware (e.g., USB) |
| Security & Access | Logging in to eSewa | Encryption, user permissions |
| Networking | Streaming YouTube videos | Managing IP addresses, firewalls |
Worked Example: Daraz’s Order Processing When you order a product on Daraz:
- The OS on Daraz’s servers uses process management to handle thousands of orders simultaneously.
- Memory management ensures product images and inventory data load quickly.
- File system management stores your order history and payment details securely.
Without an OS, Daraz would crash under demand, like a restaurant with no waiters (processes) or no kitchen (memory).
3. Types of Operating Systems
OS types are categorized by usage, architecture, and user interface. Here’s a breakdown:
Real-World Tie-In: Pathao’s Ride-Hailing OS Pathao’s app uses a real-time OS to:
- Instantly match drivers with riders (low-latency processing).
- Track GPS data in real time (critical for safety).
- Process payments (integrated with eSewa/Khalti).
If Pathao used a slow OS, riders would wait forever for a car, like waiting for a bus with no schedule (no real-time management).
4. Memory Hierarchy in Computers
Memory is organized in a hierarchy based on speed, cost, and capacity. The closer to the CPU, the faster but more expensive.
flowchart TD
A["CPU Registers"] -->|"Fastest"| B["L1 Cache"]
B --> C["L2 Cache"]
C --> D["L3 Cache"]
D --> E["RAM"]
E --> F["SSD"]
F --> G["HDD"]
G -->|"Slowest"| H["Optical/Cloud Storage"]Key Memory Types Explained
| Type | Speed | Capacity | Volatility | Example Use Case |
|---|---|---|---|---|
| Registers | Nanoseconds | KB | Non-volatile | CPU’s temporary storage |
| Cache (L1/L2/L3) | Picoseconds | MB | Non-volatile | Speeding up frequently used data |
| RAM | Microseconds | GB | Volatile | Running apps (e.g., Microsoft Word) |
| SSD | Milliseconds | TB | Non-volatile | Booting OS, storing OS files |
| HDD | Seconds | TB | Non-volatile | Storing movies, documents |
Worked Example: Bank Loan Interest Calculation When a bank (e.g., NMB) calculates your loan interest:
- RAM temporarily holds your loan data and formulas.
- SSD/HDD stores customer records and transaction history.
- If the bank’s RAM fills up, the OS swaps less-used data to HDD (slower but persistent).
Without memory hierarchy, the bank would freeze like a phone with no storage—unable to process loans or withdrawals.
5. System Software vs. Application Software
| System Software | Application Software |
|---|---|
| Manages hardware and other software | Solves user-specific tasks |
| Examples: OS, drivers, utilities | Examples: eSewa, Daraz, WhatsApp |
| Runs in the background | Requires OS to function |
| **IMAGE: system software vs app software diagram | A Venn diagram showing overlap (e.g., antivirus is both) |
Real-World Tie-In: Khalti’s Payment Software
- System Software: The Linux OS running Khalti’s servers manages network traffic, user logins, and database queries.
- Application Software: Khalti’s payment app (Android/iOS) lets users transfer money, pay bills, or buy items on Daraz.
Without system software, Khalti’s app would crash like a phone with no battery (no OS to power it).
6. Primary vs. Secondary Memory
| Primary Memory (RAM) | Secondary Memory (HDD/SSD) |
|---|---|
| Volatile (loses data when powered off) | Non-volatile (retains data) |
| Faster access (microseconds) | Slower access (milliseconds) |
| Temporary storage (apps, OS) | Permanent storage (files, programs) |
| **IMAGE: primary vs secondary memory diagram | A side-by-side of RAM vs. HDD structure** |
Counterexample Justification "Different types of primary memory have their own roles."
- SRAM (Static RAM) is used in cache (fast but expensive).
- DRAM (Dynamic RAM) is used in main memory (cheaper but needs refreshing). If a laptop used only SRAM for RAM, it would cost $10,000—unaffordable for most users. Hence, DRAM is preferred for bulk storage.
7. Components of a Computer System
A computer system consists of hardware, software, and users. The OS acts as the glue between them.
flowchart TD
A["Hardware"] -->|"Input"| B["CPU"]
B -->|"Process"| C["Memory"]
C -->|"Store"| D["Storage"]
D -->|"Output"| E["Peripherals"]
F["Software"] -->|"OS"| B
F -->|"Apps"| E
G["Users"] -->|"Interact"| FWorked Example: NEPSE Stock Trading When you trade stocks on NEPSE:
- Hardware: Servers (CPU, RAM, SSD) process your orders.
- System Software: The Linux OS manages network connections and database queries.
- Application Software: NEPSE’s trading app lets you buy/sell stocks.
- Users: Traders like you input commands.
Without the OS, NEPSE would collapse like a power grid without a control system—orders would never execute.
In the Real World
- Ncell’s Mobile OS
- Idea Used: Real-time process scheduling (handles calls, texts, and data simultaneously).
- How: The OS prioritizes voice calls over data to ensure call quality, even during network congestion.
- Example: When you’re on a call and switch to WhatsApp, the OS schedules the call first to avoid dropping it.
eSewa’s Payment Software
- Idea Used: Database management + security protocols.
- How: eSewa’s OS (Linux-based) stores transaction records in a database, while encryption ensures no hacker can steal your data.
- Example: When you pay your electricity bill via eSewa, the OS verifies your login, processes the payment, and updates your balance—all in milliseconds.
Kathmandu Traffic Routes (Simulated by OS Logic)
- Idea Used: Process prioritization (like task scheduling).
- Worked Example:
- Imagine traffic lights as an OS scheduler:
- Ambulances get high priority (like a real-time process).
- Buses get medium priority (background task).
- Private cars get low priority (non-critical task).
- If the "OS" (traffic management system) fails, Kathmandu’s roads become like a computer with no OS—complete chaos.
- Imagine traffic lights as an OS scheduler:
Exam Tip
This unit is highly examinable—expect short-answer (SAQ) and long-answer (LAQ) questions covering:
- Definitions: OS, system software, primary/secondary memory.
- Functions: Process management, memory management, file systems.
- Comparisons: Primary vs. secondary memory, system vs. application software.
- Real-world applications: Link OS functions to Nepalese examples (e.g., NTC, Ncell, banks).
- Diagrams: Draw the memory hierarchy, OS functions flowchart, or computer system components.
Top Scoring Strategies:
- For SAQs: Use bullet points with real examples (e.g., "Ncell’s OS manages calls like a scheduler").
- For LAQs: Structure answers with headings (e.g., "Functions of OS → Process Management → Example: Daraz’s order handling").
- For diagrams: Always label components (e.g., "CPU → RAM → HDD" with arrows).
- Avoid: Generic answers like "OS manages hardware." Instead, say:
"The OS acts as a traffic controller for hardware resources. For example, in a bank’s system, the OS ensures that multiple users can access their accounts simultaneously without conflicts, just like how NMB’s servers use process scheduling to handle thousands of transactions per second."
Common Pitfalls:
- ❌ Saying "RAM is permanent storage" (it’s volatile).
- ❌ Confusing system software (OS, drivers) with application software (eSewa, Daraz).
- ❌ Forgetting to link theory to Nepalese examples (examiners love real-world ties).
Final Tip: Practice drawing diagrams (memory hierarchy, OS functions) under exam conditions—many students lose marks for unclear sketches! Use arrows and labels like a textbook.
Based on the TU BITM syllabus for Foundation Of Information Technology (IT231), unit 5.
Discussion
Loading…