Skip to content

RanaHabib/CPU-Scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CPU Schedulers Simulator

Write a java program to simulate a preemptive Shortest- Job First (SJF) Scheduling with context switching

Program Input

▪ Number of processes ▪ Name of each process ▪ Burst Time ▪ Arrival time ▪ Context switching (for question 1 and 2 only)

Program Output

For each scheduler output the following: ▪ Processes execution order ▪ Waiting Time for each process ▪ Turnaround Time for each process ▪ Average Waiting Time ▪ Average Turnaround Time