Skip to content

Commit 1e27a5d

Browse files
committed
documentation
1 parent 6092dfc commit 1e27a5d

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Others/SJF.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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

1313
import java.util.Scanner;
1414
import java.util.ArrayList;
@@ -26,7 +26,6 @@ class Process {
2626
public int remainingTime;
2727
}
2828

29-
3029
class Schedule {
3130

3231
private int noOfProcess;

0 commit comments

Comments
 (0)