README
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
- Usage
- Contributions
- License
- Author
Installation
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:
- 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:
- You can now explore the repository and use it as needed.
https://github.com/knockcat/Operating-System.git
cd Operating-System
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:
- 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
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.