File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 1- // Shortest job first.
2-
3- // Shortest job first (SJF) or shortest job next, is a scheduling policy
4- // that selects the waiting process with the smallest execution time to execute next
5- // Shortest Job first has the advantage of having minimum average waiting
6- // time among all scheduling algorithms .
7- // It is a Greedy Algorithm .
8- // It may cause starvation if shorter processes keep coming.
9- // This problem has been solved using the concept of aging.
10-
11-
1+ /**
2+ * <h2>Shortest job first.</h2>
3+ * <p> Shortest job first (SJF) or shortest job next, is a scheduling policy
4+ * that selects the waiting process with the smallest execution time to execute next
5+ * Shortest Job first has the advantage of having minimum average waiting time among all scheduling algorithms.
6+ * It is a Greedy Algorithm .
7+ * It may cause starvation if shorter processes keep coming .
8+ * This problem has been solved using the concept of aging.</p>
9+ * @author shivg7706
10+ * @since 2018/10/27
11+ */
1212
1313import java .util .Scanner ;
1414import java .util .ArrayList ;
@@ -26,7 +26,6 @@ class Process {
2626 public int remainingTime ;
2727}
2828
29-
3029class Schedule {
3130
3231 private int noOfProcess ;
You can’t perform that action at this time.
0 commit comments