GithubHelp home page GithubHelp logo

jelhamm / cpu-scheduling Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 330 KB

"CPU Scheduling Algorithms Implementation Repository"

License: MIT License

Java 100.00%
cpu cpu-scheduling fcfs-process-scheduling fcfs-scheduling java mlq--scheduling operating-system priority-scheduling round-robin round-robin-scheduler

cpu-scheduling's Introduction

CPU Scheduling

This repository contains implementations of various (CPU scheduling Algorithms) in Java. The implemented algorithms include:

Performance of Algorithms

  1. FCFS:

    • This Algorithm Schedules processes based on their arrival times.
    • The process that arrives first gets executed first, and subsequent processes wait in a queue until it's their turn.
    • It operates under the assumption that all processes are equally important.
    • More Information
  2. SJF:

    • This Algorithm Schedules processes based on their burst times.
    • The process with the shortest burst time is executed first, minimizing the average waiting time.
    • It can be either preemptive or non-preemptive
    • More Information
  3. RR:

    • This Algorithm allocates a fixed time slice (Quantum) to each process in a cyclic manner.
    • Each process gets a chance to execute for the defined time quantum before being preempted and placed back in the ready queue.
    • It ensures fairness by giving equal opportunities to all processes and prevents starvation.
    • More Information
  4. Priority:

    • This Algorithm assigns priorities to processes based on certain criteria.
    • The process with the highest priority is executed first.
    • It can be either preemptive or non-preemptive.
    • More Information
  5. Multi-Level:

    • This Algorithm divides the ready queue into multiple separate queues, each with its own Scheduling Algorithm.
    • Processes are assigned to different queues based on specified criteria.
    • Each queue can use a different Scheduling Algorithm to manage its processes.
    • More Information

References

cpu-scheduling's People

Contributors

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