This repository contains practical programs for the Operating System course. Each folder contains the C programs for the respective practical.
Cloning the Repository To clone this repository, follow the steps below:
- Open your terminal or command prompt on your computer.
- Navigate to the directory where you want to clone the repository.
- Type the following command:
https://github.com/knockcat/Operating-System.git
- Press enter to execute the command.
- Wait for the cloning process to finish.
- Once the cloning process is complete, navigate to the cloned repository using the following command:
cd Operating-System
- You can now explore the repository and use it as needed.
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
This folder contains a C program to demonstrate the use of the fork()
system call.
Link: fork()
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()
This folder contains a C program to demonstrate Zombie Process
.
Link: Zombie Process
This folder contains a C program to demonstrate Orphan Process
.
Link: Orphan Process
This folder contains a C program to demonstrate First Come First Serve (FCFS) Scheduling Algorithm
.
Link: FCFS Scheduling
This folder contains a C program to demonstrate Shortest Remaining Time First (SRTF) Scheduling Algorithm
.
Link: SRTF Scheduling
This folder contains a C program to demonstrate Round Robin Scheduling
.
Link: Round Robin Scheduling
This folder contains a C program to demonstrate Preemptive Priority Scheduling
.
Link: Priority Scheduling
This folder contains a C program to implement Safety Algorithm (Banker's Algorithm - Deadlock Avoidance Algorithm)
.
Link: Banker's Algorithm (Deadlock Avoidance Algorithm)
This folder contains a C program to implement FIFO page replacement
in Operating Systems.
Link: FIFO Page Replacement
This folder contains a C program to implement LRU page replacement
in Operating Systems.
Link: LRU Page Replacement
This folder contains a C program to implement SSTF disk scheduling algorithm
in Operating Systems.
Link: SSTF Disk Scheduling
This folder contains a C program to implement FCFS disk scheduling algorithm
in Operating Systems.
Link: FCFS Disk Scheduling
This folder contains a C program to implement SCAN disk scheduling algorithm
in Operating Systems.
Link: SCAN Disk Scheduling
This folder contains a C program to implement C-SCAN disk scheduling algorithm
in Operating Systems.
Link: C-SCAN Disk Scheduling
This folder contains a C program to implement MRU page replacement
in Operating Systems.
Link: MRU Page Replacement
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:
- Fork the repository
- Create a new branch
- Make your changes and commit them
- Push the changes to your forked repository
- 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
This project is licensed under the MIT For more information, please refer to the LICENSE file.
This project was created by Vishal Joshi. You can connect with me on LinkedIn and follow me here.