Rajagiri School of Engineering and Technology
Department of Computer Science and Engineering
Lab Cycle
CSL 204 Operating Systems Lab
Day 1
- Familiarize with basic Linux commands for directory and file operations - pwd, ls, cd, mkdir, rmdir, man, rm, touch, man, cp, mv, cat, echo, grep, find, sort, wc
Day 2
- Write shell script to implement the following (i) Print numbers from 1 to 100 (ii) Finding factorial of a number (iii) Sum of digits of a number
Day 3
- Implement fork, exec, getpid, exit, wait, close, stat, opendir and readdir system calls.
Day 4
- Implement Memory Allocation Methods for fixed partition using doubly linked list (a) First-fit (b) Worst Fit (c) Best Fit
Day 5
- Simulate the following non pre-emptive CPU scheduling algorithms to find turnaround time and waiting time. a. FCFS (Non-preemptive) b. SJF (Non-preemptive) c. Round Robin(Pre-emptive) d. Priority (Non-preemptive)
Day 6
- Implement interprocess communication (IPC) using Shared Memory
Day 7
- Implement the Producer-Consumer problem using semaphores.
Day 8
- Implement Bankers algorithm for deadlock avoidance.
Day 9
- Simulate the following page replacement algorithms: a. FIFO b. LRU c. LFU
Day 10
- Simulate the following Disk Scheduling algorithms: a. FCFS b. SCAN c. C-SCAN