Round-robin (RR) is one of the algorithms employed by process and network schedulers in computing. As the term is generally used, time slices (also known as time quanta) are assigned to each process in equal portions and in circular order, handling all processes without priority.
For more info read: Round Robin Scheduler Wiki
You have to write a code which acts like a Round Robin scheduler. Your program will read an input file named Assign-1.ip. It will be a comma separated file containing a table like following (see the sample comma separated input file)
When user will start your program it will ask the user to enter the length of the quantum as following
[pc@user ~ ]$ Enter the length of the quantum [1-100]:
When a user enters any value between 1 to 100, it will schedule the jobs according to that quantum and save the order in which they execute into a comma separated file named Assign-1.op. In the above example suppose the value of quantum was given to be as 10, then its result will be the following table. The table will be saved in the form of a comma separated file as provided in the sample.
Simply run the "Round Robin Scheduler.cpp" file in any C++ compliant IDE. In order to open the Assign-1.ip and Assign-1.op files, you can use any editor like Notepad ++
You can get in touch with me on my LinkedIn Profile:
You can also follow my GitHub Profile to stay updated about my latest projects:
If you liked the repo then kindly support it by giving it a star ⭐ and share in your circles so more people can benefit from the effort.
If you find any bugs, have suggestions, or face issues:
- Open an Issue in the Issues Tab to discuss them.
- Submit a Pull Request to propose fixes or improvements.
- Review Pull Requests from other contributors to help maintain the project's quality and progress.
This project thrives on community collaboration! Members are encouraged to take the initiative, support one another, and actively engage in all aspects of the project. Whether it’s debugging, fixing issues, or brainstorming new ideas, your contributions are what keep this project moving forward.
With modern AI tools like ChatGPT, solving challenges and contributing effectively is easier than ever. Let’s work together to make this project the best it can be! 🚀
Copyright (c) 2018-present, harismuneer
Hey there, I'm Haris Muneer 👨🏻💻
-
🕸️ Founder of Cyfy Labs: At Cyfy Labs, we provide advanced social media scraping tools to help businesses, researchers, and marketers extract actionable data from platforms like Facebook, Instagram, and X (formerly Twitter). Our tools support lead generation, sentiment analysis, market research, and various other use cases. To learn more, visit: www.cyfylabs.com
-
🌟 Open Source Advocate: I’m passionate about making tech accessible. I’ve open-sourced several projects that you can explore on my GitHub profile and on the Open Source Software PK page.
-
📫 How to Reach Me: You can learn more about my skills/work at LinkedIn. You can also reach out via email for collaboration or inquiries. For Cyfy Labs related queries, please reach out through the company website.