An open API service indexing awesome lists of open source software.

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.

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.