Learn the kernel.
Build the OS.
Launch now.
BACSE106 — Operating Systems, taught by Dr. Krithika L.B. From the first instruction a PC runs at power-on to processes, memory, files, security and containers — every topic paired with an interactive lesson and a hands-on C lab.
Start Module 1 Open lab manualCourse Snapshot
- Course: BACSE106 – Operating Systems
- L-T-P-C: 3-0-2-4
- Theory: 45 hours · 6 modules
- Laboratory: 30 hours · 15 experiments
- Pre-requisite: Nil
- Faculty: Dr. Krithika L.B
Mode of Evaluation
- Theory: Continuous Assessment Tests (CAT), Digital Assignment, Quiz, Final Assessment Test (FAT)
- Laboratory: Lab Continuous Assessment, Lab Final Assessment
- Weightages are announced in class as per university norms.
Course Objectives
- To introduce the fundamental concepts, design issues, and core functionalities of operating systems.
- To build skills in managing processes, memory, files, devices, and ensuring protection and security, using algorithms and practical simulations.
- To introduce modern developments like virtualization, distributed operating systems, and cloud-based systems.
Course Outcomes (COs)
| CO | Statement | Module | Labs |
|---|---|---|---|
| CO1 | Understand the structure, functionalities and foundational concepts of operating systems. | Module 1 | Labs 1, 2 |
| CO2 | Apply process scheduling algorithms and analyze thread models and deadlock-handling methods. | Module 2 | Labs 3, 4, 5, 6, 7 |
| CO3 | Implement synchronization mechanisms and solve concurrency problems in multi-process systems. | Module 3 | Labs 8, 9, 10 |
| CO4 | Evaluate memory-management and file-system strategies used in operating systems. | Module 4 | Labs 11, 12, 15 |
| CO5 | Analyze device management, protection mechanisms and virtualization techniques in operating systems. | Module 5 | Labs 13, 14 |
Modules at a Glance
OS basics, history, structures, services, system calls, interrupts, booting.
6 hrs · Live02 · Process, Scheduling, Threads and Deadlocks
Process states, operations, threads, CPU scheduling, deadlocks.
10 hrs · Live03 · Process Synchronization
IPC, critical sections, Peterson, Bakery, locks, semaphores, monitors.
9 hrs · Live04 · Memory and File Management
Address binding, allocation, paging, segmentation, virtual memory, file systems.
10 hrs · Live05 · Managing Devices, Security, Protection and Virtualization
RAID, disk scheduling, threats, cryptography, access matrix, VMs, containers.
8 hrs · Live06 · Contemporary Issues
Current trends and guest topics.
2 hrs · Live
Module 1 – Operating Systems and Structure (6 Hours)
Module 1 answers four questions in order. What is an operating system and why did it evolve the way it did? (1.1) How is it organised inside? (1.2) How do programs ask it for help? (1.3) How does it get control — and how does it start at all? (1.4). Labs 1 and 2 let you use the OS from the shell and then build the very first piece of code a PC runs.
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 1.1 | Operating-system basics and history | Define an operating system, the kernel, system programs and application programs; Contrast the user view and the system view (resource allocator, control program) of an OS… | Open session 6 lessons | 1.5 hours |
| 1.2 | Operating-system structure | Explain why OS structure is a trade-off between performance and isolation/maintainability; Describe monolithic, layered, microkernel and modular structures with one real example each… | Open session 3 lessons | 1.5 hours |
| 1.3 | Operating-system services and system calls | List the OS services that help the user and those that keep the system efficient and safe; Explain dual-mode operation, the mode bit and privileged instructions… | Open session 7 lessons | 1.5 hours |
| 1.4 | Interrupts, OS design issues, building and booting | Distinguish hardware interrupts, traps (system calls) and exceptions; Trace the interrupt-handling cycle using the interrupt vector and an ISR; explain the role of the timer interrupt… | Open session 4 lessons | 1.5 hours |
Module 2 – Process, Scheduling, Threads and Deadlocks (10 Hours)
Everything after boot is a process. Module 2 follows a process from creation to termination, decides which one runs, and shows how they can block each other forever.
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 2.1 | Process concept and process scheduling | Distinguish a program from a process and draw the memory layout of a process; Trace a process through the five-state model and name the event behind each transition… | Open session 4 lessons | 2 hours |
| 2.2 | Operations on processes: creation, termination and cooperation | Describe the process tree, PIDs and the design choices in process creation; Predict the output of programs that use fork(), exec(), wait() and exit()… | Open session 2 lessons | 1.5 hours |
| 2.3 | Threads and multithreading models | Define a thread and list what threads share and what each owns privately; State four benefits of multithreading and distinguish concurrency from parallelism… | Open session 2 lessons | 1.5 hours |
| 2.4 | Scheduling criteria and non-preemptive scheduling: FCFS, SJF, Priority | Describe the CPU–I/O burst cycle and when the scheduler is invoked; Distinguish preemptive from non-preemptive scheduling and explain the dispatcher… | Open session 6 lessons | 2 hours |
| 2.5 | Preemptive and multilevel scheduling: RR, SRTF, Priority, MLQ, MLFQ | Solve Round Robin problems and explain how the quantum affects performance; Solve SRTF and preemptive-priority problems with arrival times… | Open session 5 lessons | 1.5 hours |
| 2.6 | Deadlocks: characterization, resource-allocation graphs and handling methods | Define deadlock using the request–use–release system model; State the four necessary conditions and show how each can be denied… | Open session 2 lessons | 1.5 hours |
Module 3 – Process Synchronization (9 Hours)
Cooperating processes share data. Module 3 shows how sharing goes wrong (race conditions) and the tools that make it safe.
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 3.1 | Inter-process communication: shared memory and message passing | Compare the shared-memory and message-passing models of IPC; Explain the bounded-buffer producer–consumer solution using in/out indices… | Open session 3 lessons | 1.5 hours |
| 3.2 | Race conditions, the critical-section problem, Peterson's solution and the Bakery algorithm | Show with an instruction-level trace how a race condition corrupts shared data; Define the critical-section problem and its three requirements… | Open session 4 lessons | 2 hours |
| 3.3 | Hardware synchronization (Test-and-Set, Swap) and mutex locks | Explain why disabling interrupts does not solve the CS problem on multiprocessors; Define test_and_set and Swap/compare_and_swap and build a lock from each… | Open session 3 lessons | 1.5 hours |
| 3.4 | Semaphores | Define a semaphore and its atomic wait() and signal() operations; Distinguish binary and counting semaphores and use each correctly… | Open session 2 lessons | 1.5 hours |
| 3.5 | Classical synchronization problems: bounded buffer, readers–writers, dining philosophers | Solve the bounded-buffer problem with mutex, empty and full semaphores and explain the order of waits; Solve the first readers–writers problem and explain why writers may starve… | Open session 2 lessons | 1.5 hours |
| 3.6 | Monitors | Explain why semaphore-based code is error-prone with three examples; Describe the structure of a monitor and how it guarantees mutual exclusion… | Open session 1 lessons | 1 hour |
Module 4 – Memory and File Management (10 Hours)
Processes need memory and persistent storage. Module 4 maps logical addresses to physical memory and files to disk blocks.
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 4.1 | Address binding, logical and physical address space | Explain how base and limit registers protect processes from each other; Distinguish compile-time, load-time and execution-time address binding… | Open session 4 lessons | 1.5 hours |
| 4.2 | Contiguous memory allocation, fragmentation and placement algorithms | Describe fixed and variable partition allocation; Apply First, Best and Worst Fit to a list of holes and requests… | Open session 2 lessons | 1.5 hours |
| 4.3 | Paging and the Translation Look-aside Buffer | Explain pages, frames and the page table and why paging removes external fragmentation; Translate logical to physical addresses given page size and page table… | Open session 3 lessons | 1.5 hours |
| 4.4 | Segmentation | Describe the programmer's view of memory that segmentation supports; Translate (segment, offset) addresses using a segment table and detect traps… | Open session 1 lessons | 1 hour |
| 4.5 | Virtual memory and demand paging | State the benefits of virtual memory; Explain demand paging and the role of the valid–invalid bit… | Open session 1 lessons | 1 hour |
| 4.6 | Page replacement (FIFO, Optimal, LRU), thrashing and the working set | Describe the page-replacement steps and the role of the dirty bit; Count page faults for FIFO, Optimal and LRU on a reference string… | Open session 2 lessons | 1.5 hours |
| 4.7 | File-system concepts and access methods | List file attributes and explain where they are stored; Describe file operations and the per-process and system-wide open-file tables… | Open session 1 lessons | 1 hour |
| 4.8 | Directory structures, directory implementation and file allocation methods | Compare single-level, two-level, tree, acyclic-graph and general-graph directories; Distinguish absolute and relative path names, hard and symbolic links… | Open session 2 lessons | 1 hour |
Module 5 – Managing Devices, Security, Protection and Virtualization (8 Hours)
Module 5 manages the devices beneath the file system, protects everything we have built, and virtualizes the whole machine.
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 5.1 | I/O device management, disk structure and RAID | Describe the layers of the I/O subsystem and compare polling, interrupts and DMA; Explain buffering, caching and spooling… | Open session 3 lessons | 1.5 hours |
| 5.2 | Disk scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOK | Explain why the order of disk requests matters for HDDs; Compute total head movement for FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK… | Open session 2 lessons | 1.5 hours |
| 5.3 | Program and network threats; cryptography as a security tool | State the goals of security and distinguish threats from attacks and security from protection; Explain Trojan horses, trap doors, logic bombs, buffer overflows, viruses and worms… | Open session 1 lessons | 1.5 hours |
| 5.4 | Protection: domains of protection, access matrix and capability-based systems | State the goals of protection, the principle of least privilege and need-to-know; Define a protection domain and explain static and dynamic domain association… | Open session 2 lessons | 1.5 hours |
| 5.5 | Virtualization: need, virtual machines, hypervisors, full and para-virtualization | List the benefits that motivate virtualization; Describe the host–VMM–guest architecture… | Open session 1 lessons | 1 hour |
| 5.6 | OS-level virtualization: containers, Docker basics, containers vs virtual machines | Explain OS-level virtualization and how it differs from hardware virtualization; Describe namespaces, cgroups and union file systems… | Open session 1 lessons | 1 hour |
Module 6 – Contemporary Issues (2 Hours)
Recent developments in operating systems — delivered as a guest lecture or a discussion session.
Labs: —
| Session | Title | Topics | Material | Duration |
|---|---|---|---|---|
| 6.1 | Contemporary issues in operating systems | Relate current OS developments to the concepts of Modules 1–5; Explain why memory-safe languages and verified extensions (eBPF) are entering kernels… | Open session 1 lessons | 2 hours |
VideoBytes
Short videos recorded by Dr. Krithika L.B accompany every session and every lab. Released sessions are listed below; each opens at its video section.
Operating-system basics and historySession 1.2
Operating-system structureSession 1.3
Operating-system services and system callsSession 1.4
Interrupts, OS design issues, building and bootingSession 2.1
Process concept and process schedulingSession 2.2
Operations on processes: creation, termination and cooperationSession 2.3
Threads and multithreading modelsSession 2.4
Scheduling criteria and non-preemptive scheduling: FCFS, SJF, PrioritySession 2.5
Preemptive and multilevel scheduling: RR, SRTF, Priority, MLQ, MLFQSession 2.6
Deadlocks: characterization, resource-allocation graphs and handling methodsSession 3.1
Inter-process communication: shared memory and message passingSession 3.2
Race conditions, the critical-section problem, Peterson's solution and the Bakery algorithmSession 3.3
Hardware synchronization (Test-and-Set, Swap) and mutex locksSession 3.4
SemaphoresSession 3.5
Classical synchronization problems: bounded buffer, readers–writers, dining philosophersSession 3.6
MonitorsSession 4.1
Address binding, logical and physical address spaceSession 4.2
Contiguous memory allocation, fragmentation and placement algorithmsSession 4.3
Paging and the Translation Look-aside BufferSession 4.4
SegmentationSession 4.5
Virtual memory and demand pagingSession 4.6
Page replacement (FIFO, Optimal, LRU), thrashing and the working setSession 4.7
File-system concepts and access methodsSession 4.8
Directory structures, directory implementation and file allocation methodsSession 5.1
I/O device management, disk structure and RAIDSession 5.2
Disk scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOKSession 5.3
Program and network threats; cryptography as a security toolSession 5.4
Protection: domains of protection, access matrix and capability-based systemsSession 5.5
Virtualization: need, virtual machines, hypervisors, full and para-virtualizationSession 5.6
OS-level virtualization: containers, Docker basics, containers vs virtual machinesSession 6.1
Contemporary issues in operating systemsLabs 1–15
Every lab page opens with its own walkthrough video
Laboratory (30 Hours · 15 Experiments)
Lab Overview
- Experiments: 15 × 2 hours
- Language: C (Lab 1: shell scripting)
- Environment: Linux / WSL, gcc, pthreads
- Every lab: video · explanation · code · how to run · sample I/O · viva
Key Skills
- Linux shell and system programs
- System calls: fork, threads, shared memory, files
- Scheduling, deadlock and memory algorithms
- Synchronization with semaphores
| Lab | Experiment | Module | Theory link | Status |
|---|---|---|---|---|
| Lab 1 | Study of basic Linux commands and shell scripting | Module 1 | Sessions 1.1–1.3 · OS services, shell, system programs | Ready |
| Lab 2 | Implementation of a bootloader | Module 1 | Session 1.4 · Building and booting an OS | Ready |
| Lab 3 | Process creation using fork(); orphan and zombie processes | Module 2 | Process concepts and operations | Ready |
| Lab 4 | Thread creation | Module 2 | Threads and multithreading models | Ready |
| Lab 5 | CPU scheduling: FCFS, SJF, Priority (non-preemptive) | Module 2 | Non-preemptive CPU scheduling | Ready |
| Lab 6 | CPU scheduling: Round Robin, SRTF, Preemptive Priority | Module 2 | Preemptive CPU scheduling | Ready |
| Lab 7 | Banker's algorithm: safe-state check and resource-request granting | Module 2 | Deadlock handling — avoidance | Ready |
| Lab 8 | Shared-memory creation and sharing contents between processes | Module 3 | IPC — shared memory | Ready |
| Lab 9 | Producer–consumer / readers–writers using semaphores | Module 3 | Semaphores, classical problems | Ready |
| Lab 10 | Dining philosophers using semaphores | Module 3 | Classical synchronization problems | Ready |
| Lab 11 | Memory allocation strategies: First Fit, Best Fit, Worst Fit | Module 4 | Contiguous allocation, placement algorithms | Ready |
| Lab 12 | Page replacement: FIFO, LRU, Optimal | Module 4 | Virtual memory, page replacement | Ready |
| Lab 13 | Disk scheduling: FCFS, SSTF, SCAN | Module 5 | Disk structure and scheduling | Ready |
| Lab 14 | Disk scheduling: C-SCAN, LOOK, C-LOOK | Module 5 | Disk structure and scheduling | Ready |
| Lab 15 | File-system operations using system calls | Module 4 | File concepts, access methods (system calls from 1.3) | Ready |
Outcome Matrix
| Module | Hours | CO | Labs | Assessed in |
|---|---|---|---|---|
| 1 · Operating Systems and Structure | 6 | CO1 | 1, 2 | CAT-1, Quiz, FAT, Lab |
| 2 · Process, Scheduling, Threads and Deadlocks | 10 | CO2 | 3 – 7 | CAT-1, DA, FAT, Lab |
| 3 · Process Synchronization | 9 | CO3 | 8 – 10 | CAT-2, Quiz, FAT, Lab |
| 4 · Memory and File Management | 10 | CO4 | 11, 12, 15 | CAT-2, DA, FAT, Lab |
| 5 · Devices, Security, Protection, Virtualization | 8 | CO5 | 13, 14 | Quiz, FAT, Lab |
| 6 · Contemporary Issues | 2 | — | — | FAT |
Mapping of modules to individual assessments is indicative; the exact portions for each CAT and quiz are announced in class.
Evaluation
Help & Resources
Text & Reference Books
- Text: Abraham Silberschatz, Peter B. Galvin, Greg Gagne, Operating System Concepts, Wiley, 10th Edition, 2018.
- Remzi H. Arpaci-Dusseau, Andrea C. Arpaci-Dusseau, Operating Systems: Three Easy Pieces, Arpaci-Dusseau Books, 1st Edition, 2023.
- Andrew S. Tanenbaum, Herbert Bos, Modern Operating Systems, Pearson Education, 4th Edition, 2015.
- William Stallings, Operating Systems: Internals and Design Principles, Pearson, 9th Edition, 2018.
- Linux manual pages:
man 2 <syscall>,man 3 <function>
Support
Faculty: Dr. Krithika L.B
Office hours: announced in class
Lab support: faculty and lab assistants during lab hours
Syllabus: BACSE106, version 1 · BoS 21-05-2025 · Academic Council No. 78 (12-06-2025)