Giter Site home page Giter Site logo

cpu-scheduling-simulator's Introduction

CPU-Scheduling-Simulator

The CPU Scheduling Simulator app is designed to explore different CPU scheduling algorithms. It supports both preemptive and non-preemptive scheduling methods and provides a user-friendly interface to visualize scheduling processes with Gantt chart.

Algorithms Covered

Non-Preemptive Algorithms

  1. First-Come, First-Served (FCFS)

    • The FCFS algorithm schedules processes in the order they arrive in the ready queue. Once a process starts its execution, it runs to completion. This is the simplest type of CPU scheduling algorithm.
  2. Shortest Job First (SJF)

    • The SJF algorithm selects the process with the smallest burst time for execution next. If two processes have the same burst time, FCFS is used to break the tie. This algorithm can reduce the average waiting time for processes.
  3. Priority Scheduling

    • In Priority Scheduling, each process is assigned a priority. The process with the highest priority (the smallest number) is selected for execution next. If two processes have the same priority, FCFS is used as a tiebreaker.

Preemptive Algorithms

  1. Round Robin (RR)

    • The Round Robin algorithm assigns a fixed time quantum to each process in the ready queue. A process is allowed to run for a time equal to the time quantum, then it is preempted and moved to the end of the queue if it still has remaining burst time. This ensures that all processes get an equal share of the CPU.
  2. Preemptive Shortest Job First (SJF) / Shortest Remaining Time First (SRTF)

    • In the preemptive version of SJF, also known as Shortest Remaining Time First (SRTF), the process with the shortest remaining burst time is selected for execution next. This can lead to more efficient use of the CPU but requires more complex tracking of process burst times.
  3. Preemptive Priority Scheduling

    • Similar to non-preemptive priority scheduling, but processes can preempt the currently running process if they have a higher priority (lower number). This allows high-priority processes to be executed as soon as they arrive.

Getting Started

  1. Download the APK file from Releases section
  2. Install it on your Android device

Screenshots

Here are some screenshots showcasing the app's interface and features:

Contributing

You are welcome for contributions to the project. If you find bug fixes, improvements, or new features, feel free to fork the repository and submit a pull request. If you encounter any issues, please report them on our Issues page.

cpu-scheduling-simulator's People

Contributors

almahfuz777 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.