Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.83 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.83 KB

Shortest Job First (SJF) Algorithm Implementation in Java using Stack

This repository contains an implementation of the Shortest Job First (SJF) scheduling algorithm in Java utilizing the stack data structure. The SJF algorithm is a non-preemptive scheduling algorithm that selects the waiting process with the smallest execution time to execute next.

Features

  • Java Implementation: The algorithm is implemented in Java, making it platform-independent and easily accessible.
  • Stack Data Structure: The implementation utilizes the stack data structure to efficiently manage the sequence of processes based on their execution time.
  • Educational Resource: This repository serves as a practical example for understanding scheduling algorithms and stack data structures in Java.

Tags

#java #algorithm #stack #scheduling #education

How to Use

To use this implementation, follow these steps:

  1. Clone the repository to your local machine using the following command:

    git clone <repository_url>
    
  2. Navigate to the directory containing the Java files.

  3. Compile the Java files using the Java compiler. For example:

    javac SJFAlgorithm.java
    
  4. Run the compiled Java program. For example:

    java SJFAlgorithm
    

Contributions

Contributions to enhance the implementation or documentation are welcome. Please feel free to submit a pull request or open an issue if you encounter any problems or have suggestions for improvement.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Special thanks to all contributors who have helped to improve this implementation.

References