Skip to content

Shubhayu1505/CodesLABOS

Repository files navigation

Operating System Lab - Practical Exercises

This repository contains the solutions to the practical exercises related to Operating Systems. Each exercise involves implementing various operating system concepts such as memory allocation, CPU scheduling, file systems, and disk scheduling.

Exercise List

1. Operating System Installation

a. Installing a Linux-based operating system (e.g., Ubuntu, Fedora).
b. Understanding the booting process of Linux.

2. Linux Commands

a. Basic Linux commands (e.g., file manipulation, directory navigation, etc.).
b. Filters (e.g., grep, sort, awk) and administrative commands (e.g., sudo, chmod).

3. Shell Programming

  • Write and execute basic shell scripts for automation of tasks.

4. Process Creation

  • Program to demonstrate process creation and management using system calls like fork() in Linux.

5. Multithreading

  • Implement a C program to demonstrate multithreading using pthread.

6. Mutual Exclusion - Semaphore and Reader Writer Solution

  • Program to implement mutual exclusion using semaphores.
  • Solve the Reader-Writer problem to avoid race conditions.

7. Dining Philosopher Problem

  • Implement the dining philosopher problem using semaphores to avoid deadlock.

8. CPU Scheduling Algorithms - FCFS and SJF

  • Program to simulate CPU scheduling algorithms:
    • First Come First Serve (FCFS)
    • Shortest Job First (SJF)

9. CPU Scheduling Algorithms - Priority and Round Robin

  • Program to simulate CPU scheduling algorithms:
    • Priority Scheduling
    • Round Robin Scheduling

10. Banker's Algorithm - Deadlock Avoidance

  • Implement the Banker's Algorithm for deadlock avoidance.

11. Memory Allocation Techniques - First Fit, Best Fit, Worst Fit

  • Program to simulate memory allocation techniques:
    • First Fit
    • Best Fit
    • Worst Fit

12. Page Replacement Algorithms - FIFO, LRU, LFU

  • Program to simulate page replacement algorithms:
    • First In First Out (FIFO)
    • Least Recently Used (LRU)
    • Least Frequently Used (LFU)

13. Disk Scheduling Algorithms - FCFS, SCAN, C-SCAN

  • Program to simulate disk scheduling algorithms:
    • First Come First Serve (FCFS)
    • SCAN
    • C-SCAN

14. File Allocation Techniques - Sequential, Indexed

  • Program to simulate file allocation methods:
    • Sequential Allocation
    • Indexed Allocation

About

This repository contains the solutions to the practical exercises related to Operating Systems. Each exercise involves implementing various operating system concepts such as memory allocation, CPU scheduling, file systems, and disk scheduling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages