NBC 101 • Unit 413 min read★ High Exam Frequency
Operating System Functions, Process Management & Language Generations
Unit 4: Computer Networks, Internet & Web Technologies • Fundamentals of Computer
👨🏫 Professor's Mental Model: The University Campus Administrator
Operating System college ke Principal aur Administrative office jaisa hai. Har student (Process) ko classroom (Memory), computer lab (CPU time), aur library (File System) ka time-slot manage karta hai taaki koi aapas me na lade aur sabhi ka kaam smooth chale!
Operating System 5-State Process Lifecycle Simulator
Interactive simulation of CPU Scheduling transitions, I/O blocking, Time-Slice interrupts, and Process Control Block (PCB) states.
1. CREATIONNEWOn Secondary Disk
2. IN RAM QUEUEREADYAwaiting CPU Time
3. CPU EXECUTIONRUNNINGExecuting on Core
4. I/O WAITWAITINGBlocked on I/O
5. EXITTERMINATEDFreed from RAM
Trigger OS Scheduler & Hardware Interrupt Events:
OS Kernel Log:Process initialized in READY queue with PID 4182.
Process Control Block (PCB) in Kernel Space (PID: 4182):
Process State:READY
Program Counter (PC):0x0040108E
CPU Cycles Used:142 Cycles
Memory Allocated:0x7FFF00 - 0x7FFFFF (1 MB)
1. Core Functions of an Operating System
• Processor Management (CPU Scheduling): Allocates CPU time slices to active processes (FIFO, Round Robin, Shortest Job First).
• Memory Management: Dynamically allocates and deallocates RAM addresses to running programs (Paging, Segmentation, Virtual Memory).
• File System Management: Organizes files hierarchically in directories (NTFS, ext4, FAT32).
• Device (I/O) Management: Coordinates device drivers, buffers, and spooling (e.g. Print Spooler).
• Security & Protection: User authentication, access control lists (ACL), process isolation.
2. Generations of Programming Languages (1GL to 5GL)
• 1GL (Machine Language): Pure binary (0s and 1s) directly executed by CPU with zero translation. Machine-dependent, extremely error-prone.
• 2GL (Assembly Language): Symbolic mnemonics (ADD, SUB, MOV) replacing binary opcodes. Translated via Assembler.
• 3GL (High-Level Procedural/OOP): Human-readable English-like syntax (C, C++, Java, Pascal). Machine-independent.
• 4GL (Non-Procedural / Declarative): Focuses on 'what to do' rather than 'how to do' (SQL, MATLAB, PowerBI).
• 5GL (AI & Constraint-Based): Natural language processing and rule-based logic (Prolog, LISP, AI Prompt programming).
🎯 University Exam Scoring Blueprint
- List the 5 primary functions of an Operating System.
- Contrast 1GL, 2GL, 3GL, and 4GL with clear examples.
- Explain Time-Sharing vs Real-Time Operating Systems (RTOS).
Top Viva Questions on Operating System Functions, Process Management & Language Generations
1