Skip to content

Commit 93ee1d2

Browse files
committed
correction of the main cpp component and auth
1 parent f5d3090 commit 93ee1d2

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

README.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
![Status](https://img.shields.io/badge/status-active-success?style=for-the-badge&logo=verizon)
55

6-
![License](https://img.shields.io/github/license/priyanshscpp/CPU-Scheduling-Algorithms?style=for-the-badge)
76

87

98
An implementation of various CPU scheduling algorithms in C++. The algorithms included are First Come First Serve (FCFS), Round Robin (RR), Shortest Process Next (SPN), Shortest Remaining Time (SRT), Highest Response Ratio Next (HRRN), Feedback (FB) and Aging.
@@ -43,13 +42,6 @@ A C++ project implementing classic CPU scheduling algorithms for simulation, ana
4342

4443
---
4544

46-
## Extending the Project
47-
48-
- Add new scheduling algorithms in `main.cpp/` and update the main driver.
49-
- Add new tests in `test/` using Google Test.
50-
- Update the makefile as needed.
51-
52-
---
5345

5446

5547
## Algorithms
@@ -156,6 +148,33 @@ entered as 2-4 means Round Robin with q=4. Also, policy 8-1 means Aging with q=1
156148
3- Priority
157149
- Processes are assumed to be sorted based on the arrival time. If two processes have the same arrival time, then the one with the lower priority is assumed to arrive first.
158150

151+
## Extending the Project
152+
153+
- Add new scheduling algorithms in `main.cpp/` and update the main driver.
154+
- Add new tests in `test/` using Google Test.
155+
- Update the makefile as needed.
156+
157+
---
158+
159+
160+
161+
## License
162+
163+
This project is licensed under the MIT License.
164+
See the [LICENSE](./LICENSE) file for details.
159165

166+
---
167+
168+
## Author
169+
170+
**Priyanshu Yadav**
171+
[GitHub: priyanshscpp](https://github.com/priyanshscpp)
172+
173+
174+
---
160175

176+
## Copyright
161177

178+
© 2025 Priyanshu Yadav (priyanshscpp).
179+
This project is licensed under the MIT License.
180+
See the [LICENSE](./LICENSE) file for details.

docs/installation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Installation
2+
1- Clone the repository
3+
4+
2- Install g++ compiler and make
5+
```bash
6+
sudo apt-get install g++ make
7+
```
8+
3- Compile the code using `make` command
9+
10+
4- Run the executable file

main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// This file is part of the CPU Scheduling Algorithms project.
2+
// Copyright (c) 2025 Priyanshu Yadav (priyanshscpp)
3+
// SPDX-License-Identifier: MIT
4+
// File: main.cpp
5+
16
#include <linux/limits.h>
27
#include <unistd.h>
38
#include <sys/types.h>

0 commit comments

Comments
 (0)