This repository contains practical file related to the subject operating systems of semester-4, including shell scripts and codes for process scheduling, page replacement, and disk scheduling. The repository also includes code for the banker's algorithm.
This folder contains several shell scripts:
- Addition of two numbers
- Calculation of area of a circle (radius entered by user)
- Swapping two numbers (with and without a third variable)
- Finding the factorial of a number
- Printing the Fibonacci series of 'n' elements and the sum of the series
- Simple calculator
- Accepting a file name with starting and ending line numbers as arguments and displaying all lines between the given line numbers
- Deleting all lines containing a specified word
- Displaying a list of all files in the current directory
This folder contains C++ implementations of various process scheduling algorithms:
- First Come First Serve (FCFS)
- Shortest Job First (SJF)
- Shortest Remaining Time First (SRTF)
- Priority Scheduling (Preemptive)
- Priority Scheduling (Non-preemptive)
- Round Robin
This folder contains C++ implementations of various page replacement algorithms:
- First In First Out (FIFO)
- Optimal
- Least Recently Used (LRU)
This folder contains C++ implementations of various process scheduling algorithms:
- First Come First Serve (FCFS)
- Shortest Seek Time First (SSTF)
- SCAN
- C-SCAN
- LOOK
- C-LOOK.
Contains code for the banker's algorithm in C++
To use this repository, you can simply clone it using the following command:
git clone https://github.com/NebulaTris/OS-Practical-File.git
You can then navigate to the required folder and run the respective code or script.
This repository is licensed under the MIT License. See the LICENSE file for more details.