Giter Site home page Giter Site logo

abdelrhmanreda17 / cpu-schedulers-simulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 233 KB

This Java program simulates various CPU scheduling algorithms,

License: MIT License

Java 100.00%
cpu-scheduling gui-application java non-preemptive-scheduling priority-scheduling round-robin-scheduler scheduling shortest-job-first shortest-remaining-time-first

cpu-schedulers-simulator's Introduction

CPU-Scheduling-Simulator

This Java program simulates various CPU scheduling algorithms, including Non-Preemptive Shortest-Job-First (SJF), Shortest-Remaining-Time-First (SRTF), Non-preemptive Priority Scheduling, and AG Scheduling. The AG Scheduling algorithm includes both non-preemptive and preemptive phases.

Scheduler Algorithms

  1. Non-Preemptive Shortest-Job-First (SJF)
  2. Shortest-Remaining-Time-First (SRTF)
  3. Non-preemptive Priority Scheduling
  4. AG Scheduling:
    • Round Robin (RR) with AG-Factor

Usage

  1. Clone the Repository:

    git clone https://github.com/AbdelrhmanReda17/cpu-schedulers-simulator.git
  2. Open the project in NetBeans or IntelliJ

  3. Run Main.java

  4. Add Process Details (Burst, Arrival, Priority, Color)

    • Easily edit or delete processes as needed.

    Process Details

  5. Select Algorithm and Input Parameters

    • Choose an algorithm and provide essential information such as Age, Quantum, and Context Switch.
  6. Initiate Simulation

    Simulation

    • The simulator will generate a Gantt chart using the jFreeChart Library, visually representing the flow of processes.
    • A detailed process table will be generated, displaying information such as finish time, turnaround time, waiting time, and more.
    • [NOTE IF YOU ARE USING AG] A detailed Quantum table will be generated to represent the change of the Quantum for each process

Contributors

cpu-schedulers-simulator's People

Contributors

abdelrhmanreda17 avatar abdoman19 avatar darkensoda avatar yassintarekhelmy avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.