Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

Lab Manual — 15 experiments

BACSE106 – Operating Systems · 30 laboratory hours · Linux · C

2 hours eachLab CA + Lab FAT

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

Lab 01 · Module 1
Study of basic Linux commands and shell scripting

Sessions 1.1–1.3 · OS services, shell, system programs

Ready
Lab 02 · Module 1
Implementation of a bootloader

Session 1.4 · Building and booting an OS

Ready
Lab 03 · Module 2
Process creation using fork(); orphan and zombie processes

Process concepts and operations

Ready
Lab 04 · Module 2
Thread creation

Threads and multithreading models

Ready
Lab 05 · Module 2
CPU scheduling: FCFS, SJF, Priority (non-preemptive)

Non-preemptive CPU scheduling

Ready
Lab 06 · Module 2
CPU scheduling: Round Robin, SRTF, Preemptive Priority

Preemptive CPU scheduling

Ready
Lab 07 · Module 2
Banker's algorithm: safe-state check and resource-request granting

Deadlock handling — avoidance

Ready
Lab 08 · Module 3
Shared-memory creation and sharing contents between processes

IPC — shared memory

Ready
Lab 09 · Module 3
Producer–consumer / readers–writers using semaphores

Semaphores, classical problems

Ready
Lab 10 · Module 3
Dining philosophers using semaphores

Classical synchronization problems

Ready
Lab 11 · Module 4
Memory allocation strategies: First Fit, Best Fit, Worst Fit

Contiguous allocation, placement algorithms

Ready
Lab 12 · Module 4
Page replacement: FIFO, LRU, Optimal

Virtual memory, page replacement

Ready
Lab 13 · Module 5
Disk scheduling: FCFS, SSTF, SCAN

Disk structure and scheduling

Ready
Lab 14 · Module 5
Disk scheduling: C-SCAN, LOOK, C-LOOK

Disk structure and scheduling

Ready
Lab 15 · Module 4
File-system operations using system calls

File concepts, access methods (system calls from 1.3)

Ready

Setting 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:

Terminal — one-time setup on Ubuntu / WSL
sudo apt update
sudo apt install build-essential gdb nasm qemu-system-x86 strace
Terminal — compile and run any C lab program
gcc program.c -o program          # add -pthread for thread / semaphore labs
./program