https://github.com/anishvedant/round-robin-scheduler
This repository contains a Python script that simulates a thread scheduler using round-robin scheduling with priority. It provides users with insights into thread scheduling information and performance metrics.
https://github.com/anishvedant/round-robin-scheduler
algorithms cpu-scheduling performance-metrics priority-scheduling python python-scripting round-robin-scheduling scheduling-algorithms thread-scheduling threading turnaround-time waiting-time
Last synced: 10 days ago
JSON representation
This repository contains a Python script that simulates a thread scheduler using round-robin scheduling with priority. It provides users with insights into thread scheduling information and performance metrics.
- Host: GitHub
- URL: https://github.com/anishvedant/round-robin-scheduler
- Owner: anishvedant
- License: mit
- Created: 2024-05-15T18:19:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T00:16:09.000Z (11 months ago)
- Last Synced: 2025-02-17T03:30:14.273Z (3 months ago)
- Topics: algorithms, cpu-scheduling, performance-metrics, priority-scheduling, python, python-scripting, round-robin-scheduling, scheduling-algorithms, thread-scheduling, threading, turnaround-time, waiting-time
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Round-robin-scheduler
Round Robin Scheduler simulates a thread scheduler using Round Robin scheduling with priority. It provides insights into thread scheduling information and performance metrics.
## Key Features
- Thread Scheduling: Implements Round Robin scheduling with priority to manage thread execution.
- Performance Metrics: Calculates throughput, CPU utilization, average turnaround time, average waiting time, and average response time.
- Suspension and Resumption: Allows suspension and resumption of threads for dynamic scheduling.## Setup Instructions
Clone the Repository:```bash
git clone https://github.com/anishvedant/Round-robin-scheduler.git
```
Navigate to the directory:```bash
cd Round-robin-scheduler
```## Install Dependencies
```bash
pip install threading
```## Execute the Script
- Open Command Prompt by pressing Win + R and typing cmd.
- Navigate to the directory where the script is saved using the cd command.
- Execute the script by typing python scheduler_simulation.py in the Command Prompt and pressing Enter.## Follow the Output
Review the output displayed in the Command Prompt window.
Follow the output for thread scheduling information and performance metrics.# Usage
Run the Script:```bash
python3 scheduler_simulation.py
```# Review Output:
The script will simulate thread scheduling with round-robin scheduling and display performance metrics such as throughput, CPU utilization, average turnaround time, average waiting time, and average response time.
# Contributing
Contributions are welcome! Fork the repository and submit a pull request with your changes.# License
This project is licensed under the MIT License. See the LICENSE file for details.# Disclaimer
This script provides a simulation of thread scheduling and performance metrics. It is intended for educational purposes and may require adjustments for specific use cases.