Paper 3: OPERATING SYSTEMS from the MCA syllabus:
Unit-I: Basics of Operating Systems
-
Definitions, Components, and Types:
- Operating System (OS): A system software that manages hardware and software resources.
- Components:
- Kernel, Shell, File System, Device Drivers, Process Manager, Memory Manager.
- Types:
- Batch OS: Executes batches of jobs without user interaction.
- Time-Sharing OS: Allows multiple users to interact with the system.
- Distributed OS: Manages resources across multiple machines.
- Real-Time OS: Provides immediate responses for critical systems.
- Embedded OS: Designed for specific hardware.
-
Operating System Services:
- User interface (CLI/GUI), file management, memory management, process management, I/O device management, and system security.
-
System Calls:
- Interface for user programs to interact with the OS (e.g., open, close, read, write, fork).
-
Process Concepts:
- A process is a running instance of a program.
- States: New, Ready, Running, Waiting, Terminated.
- Process Control Block (PCB): Stores process details like ID, state, program counter, registers, etc.
-
Process Scheduling:
- CPU Scheduling: Allocates CPU to processes.
- Algorithms:
- FCFS (First-Come, First-Served).
- SJF (Shortest Job First).
- Round Robin (time-slice-based).
- Priority Scheduling.
- Multilevel Queue Scheduling.
Unit-II: Process Synchronization and Deadlocks
-
Critical Section Problem:
- Occurs when multiple processes access shared resources simultaneously.
- Solution: Mutual exclusion, progress, bounded waiting.
-
Semaphores:
- Synchronization tool to avoid race conditions.
- Types: Binary Semaphore (0/1) and Counting Semaphore.
-
Classical Synchronization Problems:
- Producer-Consumer Problem: Managing buffer space for producing and consuming items.
- Readers-Writers Problem: Coordinating access to shared data for readers and writers.
- Dining Philosophers Problem: Preventing deadlocks when philosophers share resources.
-
Deadlock:
- Characterization: Mutual exclusion, hold and wait, no preemption, circular wait.
- Handling:
- Prevention: Avoids at least one of the four conditions.
- Avoidance: Uses algorithms like Banker’s Algorithm.
- Detection: Identifies deadlocks and resolves them (e.g., by terminating processes).
- Recovery: Restores the system by rolling back processes.
Unit-III: Memory Management
-
Logical vs Physical Address Space:
- Logical Address: Generated by CPU.
- Physical Address: Actual location in memory.
-
Swapping:
- Moving processes in/out of memory for execution.
-
Memory Allocation:
- Contiguous Allocation: Fixed-size memory blocks.
- Paging: Divides memory into fixed-size pages.
- Segmentation: Divides memory into variable-sized segments.
-
Virtual Memory:
- Allows execution of processes larger than physical memory.
- Implements demand paging.
-
Page Replacement Algorithms:
- FIFO, LRU (Least Recently Used), Optimal Algorithm.
-
Thrashing:
- Excessive swapping due to insufficient memory.
Unit-IV: Storage and File Management
-
Disk Structure:
- Logical blocks, tracks, sectors, and cylinders.
-
Disk Scheduling:
- Algorithms to optimize access time:
- FCFS (First-Come, First-Served).
- SSTF (Shortest Seek Time First).
- SCAN, C-SCAN (circular), LOOK, C-LOOK.
- Algorithms to optimize access time:
-
File System:
- File Concepts: File types, attributes, access methods (sequential, direct).
- Directory Structure: Single-level, two-level, tree-structured directories.
- File Access Control: User permissions (read, write, execute).
-
I/O Management:
- Handles input/output devices.
- Includes spooling and buffering.
Unit-V: Case Studies of Linux and Windows Systems
-
Linux System:
- Components:
- Kernel: Manages hardware resources.
- Shell: User interface for command execution.
- Process Management:
- Scheduling, memory management, I/O management.
- File System:
- Uses ext4, ext3, and ext2 file systems.
- Synchronization and Communication:
- IPC (Inter-Process Communication) mechanisms like pipes, message queues, and shared memory.
- Components:
-
Windows System:
- Design Principles:
- Modular design with layers.
- Supports multitasking, multiprocessing, and multithreading.
- Components:
- Kernel, HAL (Hardware Abstraction Layer), Subsystems.
- Memory Management:
- Virtual memory with paging.
- File System:
- NTFS (New Technology File System).
- Design Principles:
Key Features of the Subject
- Covers the theoretical foundations of operating systems.
- Explains process management, memory management, and file systems.
- Introduces practical algorithms for scheduling, synchronization, and deadlock prevention.
- Includes comparative studies of Linux and Windows operating systems.
No comments:
Post a Comment