Giter Site home page Giter Site logo

miguelmendez1208 / java_scheduler Goto Github PK

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

This Java project is a job scheduler simulation that can emulate different scheduling algorithms. It reads job data from a text file, 'jobs.txt', and generates a schedule based on the selected scheduling algorithm.

Java 100.00%

java_scheduler's Introduction

This Java project is a job scheduler simulation that can emulate different scheduling algorithms. It reads job data from a text file, 'jobs.txt', and generates a schedule based on the selected scheduling algorithm.

Features Implements Round Robin (RR), Shortest Remaining Time (SRT), and Feedback (FB) scheduling algorithms. Can execute all scheduling algorithms and compare their results. Takes job inputs from 'jobs.txt', each line should represent a job in the format [Job Name] [Arrival Time] [Burst Time]. Generates a schedule of jobs and prints it to the console. Running the Program To run this program, use the following command:

java proj3.java [scheduling_algorithm]

Replace [scheduling_algorithm] with either RR for Round Robin, SRT for Shortest Remaining Time, FB for Feedback, or all to execute all scheduling algorithms and compare their results.

Example Usage To execute the Round Robin scheduling algorithm:

java proj3.java RR

To execute all scheduling algorithms and compare their results:

java proj3.java all

Note Ensure that the 'jobs.txt' file is in the same directory as the project and is formatted correctly. Each job should be on its own line in the format [Job Name] [Arrival Time] [Burst Time]. Example:

Job1 0 5 Job2 1 3 Job3 2 7

Disclaimer This is a simulation tool for educational purposes. It does not interact with any real-world systems or perform actual job scheduling.

java_scheduler's People

Contributors

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