man-yadul / S4-CSL204-OPERATING-SYSTEMS-LAB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rajagiri School of Engineering and Technology

Department of Computer Science and Engineering

Lab Cycle

CSL 204 Operating Systems Lab

Day 1

  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

  1. 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

  1. Implement fork, exec, getpid, exit, wait, close, stat, opendir and readdir system calls.

Day 4

  1. Implement Memory Allocation Methods for fixed partition using doubly linked list (a) First-fit (b) Worst Fit (c) Best Fit

Day 5

  1. 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

  1. Implement interprocess communication (IPC) using Shared Memory

Day 7

  1. Implement the Producer-Consumer problem using semaphores.

Day 8

  1. Implement Bankers algorithm for deadlock avoidance.

Day 9

  1. Simulate the following page replacement algorithms: a. FIFO b. LRU c. LFU

Day 10

  1. Simulate the following Disk Scheduling algorithms: a. FCFS b. SCAN c. C-SCAN