Giter Club home page Giter Club logo

os-schedulers's Introduction

Process Scheduler Simulation

Team Member

  • Hong Thy Nguyen
  • Diego Aguirre

Description

This project simulates different process scheduling algorithms including First-Come First-Served (FCFS), Preemptive Shortest Job First (SJF), and Round Robin (RR). The results are displayed in a Tkinter-based GUI, showing the events and process metrics for each scheduler.

Features

  • Simulate FCFS, SJF, and RR scheduling algorithms.
  • Display scheduling events and process metrics in a user-friendly GUI.
  • Easily select input files through a file dialog.

Requirements

  • Python 3.x
  • Tkinter (usually included with Python on most systems)

Installation

Ensure Python and Tkinter are installed

  • On macOS: Tkinter is included with Python on macOS by default. If you encounter any issues, you can install Tkinter via Homebrew:
    brew install python-tk
    
  • On Windows: Tkinter is included with the standard Python distribution. If you encounter any issues, make sure you have Python installed correctly from python.org.

Usage

  1. Clone the repository:

    git clone https://github.com/thieng101/OS-Schedulers.git
    cd OS-scheduler
  2. Run the scheduler script:

    python3 scheduler-gpt.py inputFile.in

    Replace inputFile.in with the correct input file. The output will be written in a file with the same name as the input file but with an ending .out extension.

  3. Run the UI script (the file creating UI for the schedulers):

    python3 UI_OS.py

    Select the input file: A file dialog will appear. Select the input file with the .in extension.

    ###NOTE Running the UI_OS.py won't generate an output file, only displaying in the window.

  4. View the results: The scheduling results will be displayed in a tabbed interface. Each tab corresponds to a scheduler and shows the events and process metrics.

os-schedulers's People

Contributors

thieng101 avatar floorman avatar jeddsh 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.