Write C programs to simulate the following CPU Scheduling algorithms: a) FCFS b) SJF c) RoundRobin d) priority
View Solution β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
System Calls and File I/O
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
Write a C program to simulate Bankers Algorithm for Deadlock Avoidance and Prevention.
View Solution βProcess Synchronization
Write a C program to implement the Producer β Consumer problem using semaphores using UNIX/LINUX system calls.
View Solution βInter-Process Communication
Write C programs to illustrate the following IPC mechanisms: a) Pipes b) FIFOs c) Message Queues d) Shared Memory.
View Solution βMemory Management
Write C programs to simulate the following memory management techniques: a) Paging b) Segmentation.
View Solution βWrite C programs to simulate Page replacement policies: a) FCFS b) LRU c) Optimal.
View Solution β