Skip to content

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.

License

Notifications You must be signed in to change notification settings

anishvedant/Round-robin-scheduler

Repository files navigation

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:

git clone https://github.com/anishvedant/Round-robin-scheduler.git

Navigate to the directory:

cd Round-robin-scheduler

Install Dependencies

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:

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.

About

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.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages