Skip to content

This repository contains all the Operating system practicals performed by me during my B.Tech Curriculum πŸ“š

License

Notifications You must be signed in to change notification settings

knockcat/Operating-System

Repository files navigation

Operating System Practicals

This repository contains practical programs for the Operating System course. Each folder contains the C programs for the respective practical.

Table of Contents

Installation

Cloning the Repository To clone this repository, follow the steps below:

  1. Open your terminal or command prompt on your computer.
  2. Navigate to the directory where you want to clone the repository.
  3. Type the following command:
   https://github.com/knockcat/Operating-System.git
  1. Press enter to execute the command.
  2. Wait for the cloning process to finish.
  3. Once the cloning process is complete, navigate to the cloned repository using the following command:
   cd Operating-System  
  1. You can now explore the repository and use it as needed.

Usage

This repository contains the following programs:

To Run them use following commands every execution is attached in output in above folders you can also refer there...

  cd Practical-01
  gcc program_Name.c
  ./a.out

Practical-01

This folder contains a C program to demonstrate the use of the fork() system call.

Link: fork()

Practical-02

This folder contains a C program in which the parent process computes the sum of even numbers and child process computes the sum of odd numbers stored in an array using a fork(). First, the child process should print its answer (i.e. sum of odd numbers) and then the parent process should print its answer (i.e. the sum of even numbers).

Link: Sum Even and Odd using fork()

Practical-03

This folder contains a C program to demonstrate Zombie Process.

Link: Zombie Process

Practical-04

This folder contains a C program to demonstrate Orphan Process.

Link: Orphan Process

Practical-05

This folder contains a C program to demonstrate First Come First Serve (FCFS) Scheduling Algorithm.

Link: FCFS Scheduling

Practical-06

This folder contains a C program to demonstrate Shortest Remaining Time First (SRTF) Scheduling Algorithm.

Link: SRTF Scheduling

Practical-07

This folder contains a C program to demonstrate Round Robin Scheduling.

Link: Round Robin Scheduling

Practical-08

This folder contains a C program to demonstrate Preemptive Priority Scheduling.

Link: Priority Scheduling

Practical-09

This folder contains a C program to implement Safety Algorithm (Banker's Algorithm - Deadlock Avoidance Algorithm).

Link: Banker's Algorithm (Deadlock Avoidance Algorithm)

Practical-10

This folder contains a C program to implement FIFO page replacement in Operating Systems.

Link: FIFO Page Replacement

Practical-11

This folder contains a C program to implement LRU page replacement in Operating Systems.

Link: LRU Page Replacement

Practical-12

This folder contains a C program to implement SSTF disk scheduling algorithm in Operating Systems.

Link: SSTF Disk Scheduling

Practical-13

This folder contains a C program to implement FCFS disk scheduling algorithm in Operating Systems.

Link: FCFS Disk Scheduling

Practical-14

This folder contains a C program to implement SCAN disk scheduling algorithm in Operating Systems.

Link: SCAN Disk Scheduling

Practical-15

This folder contains a C program to implement C-SCAN disk scheduling algorithm in Operating Systems.

Link: C-SCAN Disk Scheduling

Practical-16

This folder contains a C program to implement MRU page replacement in Operating Systems.

Link: MRU Page Replacement

Contributions

We welcome contributions from the community. If you find a bug, have a feature request or want to contribute code, please follow the steps below:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes and commit them
  4. Push the changes to your forked repository
  5. Create a pull request

Please ensure your pull request adheres to the following guidelines:

  • Keep the code style consistent with the project's style
  • Write tests for any new features or modifications
  • Ensure the tests pass before submitting the pull request

License

This project is licensed under the MIT For more information, please refer to the LICENSE file.

Author

This project was created by Vishal Joshi. You can connect with me on LinkedIn and follow me here.

About

This repository contains all the Operating system practicals performed by me during my B.Tech Curriculum πŸ“š

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages