We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9643e21 commit 2eea536Copy full SHA for 2eea536
Implementation_of_Priority.java
@@ -49,3 +49,12 @@ public static void main(String args[]){
49
avg_wait += wait[i];
50
turn_around[i] = wait[i] + burst_time[i];
51
}
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