These are the notes of Operating system CMP 361 abided by the syllabus of Pokhara University. Click on the links below to check out the notes.
Unit I: Introduction (5 Hours)
- Operating System concepts
- Brief history of Operating System,
- Introduction of Operating System,
- Importance and functions of OS,
- Concepts of Uni-programming, Multiprogramming, and Parallel Programming,
- Evolution of Operating System,
- Types of Operating System: Sequential, Batch, Multiprogramming (multitasking), Multiprocessing (multiprocessor), Time Sharing, Real-Time, Distributed, Embedded.
- Kernel OS,
- OS architectures (structures): Monolithic, Microkernel, Layered, Client-server, Virtual machine,
- Operating System services: System calls, Shell commands, Shell programming, OS Examples: DOS, UNIX, Linux, MS-Windows, Handheld OS etc.
Unit II: Process and Thread Management (6 Hours)
- Introduction to Process
- Process description or Operation of Process,
- Process States
- Process Control Block (PCB)
- Types of Threads
- Implementation of Threads
- Multi-threading Models
- Process vs Threads,
- Scheduler and its types: Short term, Medium term and Long term,
- Comparison among Scheduler
- Scheduling and its types: preemptive and non preemptive,
- Comparison of preemptive and non preemptive scheduling,
- Scheduling Techniques
- Process Scheduling algorithms: FCFS, SJF, SRTF, RR, Priority, HRN, Multi-level, Multi-level Feedback, Thread Scheduling, Multiprocessor scheduling concepts
Unit III: Inter-Process Communication and Synchronization (6 hours)
- Introduction to IPC,
- Process Communication Mechanisms: Message Passing, Remote Procedure Call (RPC), Shared Resource (Memory), Resource sharing,
- Concurrent process, Critical region, Race condition,
- Solution of race condition: Mutual exclusion, Mutual exclusion algorithms: Locks, Test and Set Lock (TSL), Peterson’s algorithms,
- Semaphore, and Mutex, Monitor, Process Synchronization Classical problems of Process Synchronization: Readers-Writers Problem,
- Producer-Consumer Problem, Sleeping Barber Problem, Dining Philosopher Problems
Unit IV: Deadlock 5 hours
- Process Deadlock, Reusable, Consumable Resources,
- Causes (Conditions) of Deadlock: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait, Deadlock Handling, Prevention,
- Avoidance: Ostrich Algorithm, Bankler’s Algorithm, Detection, Recovery, Others issues: Database deadlock, Communication deadlock, Livelock, Starvation
Unit V: Memory Management (7 hours)
- Concepts of memory and its hierarchy, Memory address: Logical and Physical address, Concept of swapping,
- Managing Free Memory Space: First Fit, Best Fit, Next Fit, and Worst Fit, Coalescing and Compaction, Memory Management Techniques, Contiguous: Resident Monitor, Multiprogramming with fixed and variable partition,
- Non-Contigious: Paging, Segmentation, Paging with segmentation, Demand Paging, Virtual Memory Management, Page Replacement Algorithms: FIFO, NRU, LRU, Clock, Optimal, Thrashing
Unit VI: Input/Output Management and Disk Scheduling (5 hours)
- I/O Devices, I/O Techniques: Programmed I/O, Interrupt-driven I/O, and Direct Memory Access (DMA), Principle I/O hardware: I/O devices,
- Device controllers, DMA, I/O software: Polling, Interrupt, I/O software layer, Disk, Formatting, Arm scheduling algorithms: FCFS, SSTF, Elevator (Scan), C-Scan, Look, C-Look
Unit VII: File System Management (4 hours)
- File Naming, File Organization and access, File Directories and paths, File Sharing, Record Blocking,
- File system implementation: Contigious, linked-list, linked list with table, I-nodes, Secondary File Storage Management, Examples: CD ROM file system, MS DOS file system, Unix file system
Unit VIII: Security (4 hours)
- Security issues, Types of attacks, Security policy and Access control,
- Basics of cryptography: Encryption and Decryption, Protection mechanisms, Authentication, OS design considerations for security
Unit IX: Distributed Operating System (6 hours)
- Introduction to distributed system and distributed operating system, Goals and objectives,
- Distributed operating system (DOS) vs Network operating system (NOS), DOS as middleware, Communication in distributed system: client-server, RPC, and group communication, Mutual exclusion, Clock synchronization algorithm, Election algorithm
Different lab works related to normal OS and distributed OS in Windows, and Linux OS.
1. William, S. Operating Systems. Delhi: Pearson Education.
2. Tanenbaum, A. S. Modern Operating Systems. New Delhi: Prentice Hall of India.
1. Milenkovic, Milan. Operating Systems Concepts and Design. New Delhi: Tata McGraw Hill.
2. Silbcrschatz A, G. P., & Gagne, G. Operating System Concepts. New York: John Wiley and Sons.
3. Bach, M. J. The Design of The Unix Operating System. New Delhi: Prentice Hall of India.
4. Crowley, C. Operating Systems: A Design-oriented Approach. New Delhi: Tata McGraw Hill.