Lab Manual — 15 experiments
BACSE106 – Operating Systems · 30 laboratory hours · Linux · C
How every lab page is organised
1 · Video
A short walkthrough recorded by Dr. Krithika L.B.
2 · Explanation
The OS idea behind the experiment, linked to the theory session.
3 · Code
The simplest complete C program that satisfies the question.
4 · How to run
Exact compile and run commands for Linux.
5 · Sample I/O
Input you can type and the output you should see.
6 · Viva
Questions to prepare for evaluation, with answers.
Experiments
Study of basic Linux commands and shell scripting
Sessions 1.1–1.3 · OS services, shell, system programs
ReadyLab 02 · Module 1Implementation of a bootloader
Session 1.4 · Building and booting an OS
ReadyLab 03 · Module 2Process creation using fork(); orphan and zombie processes
Process concepts and operations
ReadyLab 04 · Module 2Thread creation
Threads and multithreading models
ReadyLab 05 · Module 2CPU scheduling: FCFS, SJF, Priority (non-preemptive)
Non-preemptive CPU scheduling
ReadyLab 06 · Module 2CPU scheduling: Round Robin, SRTF, Preemptive Priority
Preemptive CPU scheduling
ReadyLab 07 · Module 2Banker's algorithm: safe-state check and resource-request granting
Deadlock handling — avoidance
ReadyLab 08 · Module 3Shared-memory creation and sharing contents between processes
IPC — shared memory
ReadyLab 09 · Module 3Producer–consumer / readers–writers using semaphores
Semaphores, classical problems
ReadyLab 10 · Module 3Dining philosophers using semaphores
Classical synchronization problems
ReadyLab 11 · Module 4Memory allocation strategies: First Fit, Best Fit, Worst Fit
Contiguous allocation, placement algorithms
ReadyLab 12 · Module 4Page replacement: FIFO, LRU, Optimal
Virtual memory, page replacement
ReadyLab 13 · Module 5Disk scheduling: FCFS, SSTF, SCAN
Disk structure and scheduling
ReadyLab 14 · Module 5Disk scheduling: C-SCAN, LOOK, C-LOOK
Disk structure and scheduling
ReadyLab 15 · Module 4File-system operations using system calls
File concepts, access methods (system calls from 1.3)
ReadySetting up your machine
All experiments run on Linux. Use the lab machines, an Ubuntu virtual machine, or WSL on Windows (wsl --install -d Ubuntu in an administrator PowerShell). Then install the tools once:
sudo apt update
sudo apt install build-essential gdb nasm qemu-system-x86 stracegcc program.c -o program # add -pthread for thread / semaphore labs
./program