We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7454f7 commit e9d3256Copy full SHA for e9d3256
Implementation_of_SJF.java
@@ -48,3 +48,13 @@ public static void main(String args[]){
48
total++;
49
}
50
51
+
52
+ System.out.println("\nProcessID Arrival Brust Waiting");
53
+ for(int i = 0; i < n; i++){
54
+ avg_wait += wait[i];
55
+ System.out.println(process_id[i] + "\t" + arrival[i] + "\t" + burst_time[i] + "\t" + wait[i]);
56
+ }
57
+ System.out.println ("average waiting time is " + (float)(avg_wait/n));
58
+ sc.close();
59
60
+}
0 commit comments