Skip to content

ShouqSaadRu/MLQ-Scheduler-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multilevel Queue CPU Scheduler (Java)

This Java-based simulator implements a Multilevel Queue (MLQ) CPU Scheduling algorithm for Operating Systems coursework.

Features

  • Q1 (High Priority): Round Robin with 3ms quantum
  • Q2 (Low Priority): Shortest Job First (non-preemptive)
  • Preemptive scheduling between Q1 and Q2
  • Detailed scheduling report printed to Report.txt

How It Works

  1. User enters number of processes
  2. For each process, inputs: priority, arrival time, and CPU burst
  3. Scheduler:
    • Assigns to correct queue
    • Simulates execution
    • Calculates start time, end time, turnaround, waiting, and response time
    • Prints a summary report

About

Java program that simulates a Multilevel Queue CPU Scheduling algorithm using Round Robin (Q1) and Shortest Job First (Q2), with preemptive queue-level handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages