Skip to content

Commit 2eea536

Browse files
authored
Update Implementation_of_Priority.java
1 parent 9643e21 commit 2eea536

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Implementation_of_Priority.java

+9
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@ public static void main(String args[]){
4949
avg_wait += wait[i];
5050
turn_around[i] = wait[i] + burst_time[i];
5151
}
52+
53+
System.out.println("\nProcessID Arrival Burst_Time Waiting Priority");
54+
for(int i = 0; i < n; i++){
55+
System.out.println("\t " + process_id[i] + "\t " + arrival[i] + "\t " + burst_time[i] + "\t " + wait[i] + "\t " + process_priority[i]);
56+
}
57+
sc.close();
58+
System.out.println("\nAverage waiting time : " + (avg_wait/n));
59+
}
60+
}

0 commit comments

Comments
 (0)