πŸ–₯️
B.TECH II YEAR β€’ II SEMESTER

Operating Systems - Lab Manual

R22 Lab Manual β€’ Operating Systems using C Programming

LAB MANUAL

Operating Systems Lab Programs

This tutorial provides Lab Programs on various topics of Operating Systems using C. It includes CPU Scheduling, UNIX/LINUX I/O system calls, Deadlock avoidance, Producer–Consumer synchronization, IPC mechanisms, Memory Management and Page Replacement policies.

⏱️

CPU Scheduling

1 Program
01

Write C programs to simulate the following CPU Scheduling algorithms: a) FCFS b) SJF c) RoundRobin d) priority

View Solution β†’
πŸ“‚

System Calls and File I/O

1 Program
01

Write programs using the I/O system calls of UNIX/LINUX operating system (open, read, write, close, fcntl, seek, stat, opendir, readdir).

View Solution β†’
πŸ”’

Deadlock

1 Program
01

Write a C program to simulate Bankers Algorithm for Deadlock Avoidance and Prevention.

View Solution β†’
πŸ”„

Process Synchronization

1 Program
01

Write a C program to implement the Producer – Consumer problem using semaphores using UNIX/LINUX system calls.

View Solution β†’
πŸ”—

Inter-Process Communication

1 Program
01

Write C programs to illustrate the following IPC mechanisms: a) Pipes b) FIFOs c) Message Queues d) Shared Memory.

View Solution β†’
🧠

Memory Management

2 Programs
01

Write C programs to simulate the following memory management techniques: a) Paging b) Segmentation.

View Solution β†’