Procedure
A. First Come First Serve or Shortest Job First:
- Enter the number of processes (n) you want for scheduling and click the SUBMIT button.
- Input the arrival time (range: 0 to 20) and burst time (range: 1 to 20), then click the SUBMIT button to add the processes to the table.
- Repeat the step 2 for all processes (n).
- Click the PLOT button to generate the Gantt chart.
- After the chart is created, complete the table using the following formulas:
Completion Time = Start Time (from the chart) + Burst Time
Turn Around Time (TAT) = Completion Time - Arrival Time
Waiting Time (WT) = Turn around time - Burst Time
- To verify the entered values, click the CHECK button.
- Calculate the average TAT by entering the required values from the table and click the SUBMIT button.
- Calculate the average WT by entering the required values from the table and click the SUBMIT button.
- Click the PRINT button to print the page.
Note: When multiple processes have the same arrival time, a tie-breaker is implemented using the process ID. The process with the lower ID is chosen to determine the execution order.
B. Round Robin:
- Enter the number of processes (n) you want for scheduling and click the SUBMIT button.
- Enter the quantum time (range: 2 to 5 units), then click the SUBMIT button.
- Input the arrival time (range: 0 to 20) and burst time (range: 1 to 20), then click the SUBMIT button to add the processes to the table.
- Repeat step 3 for all processes (n).
- Click the PLOT button to generate the Gantt chart.
- After the chart is created, complete the table using the following formulas:
Completion Time (CT) = Refer to the Gantt chart
Turn Around Time (TAT) = Completion Time - Arrival Time
Waiting Time (WT) = Turn around time - Burst Time
- To verify the entered values, click the CHECK button.
- Calculate the average TAT by entering the required values from the table and click the SUBMIT button.
- Calculate the average WT by entering the required values from the table and click the SUBMIT button.
- Click the PRINT button to print the page.
Note: In cases where multiple processes have the same arrival time, a tie-breaker is implemented using the process ID. The process with the lower ID is chosen to determine the execution order.
C. Priority:
- Enter the number of processes (n) you want for scheduling and click the SUBMIT button.
- Input the arrival time (range: 0 to 20), burst time (range: 1 to 20), and priority (range: 1 to 10), then click the SUBMIT button to add the processes to the table.
- Repeat step 2 for all processes (n).
- Click the PLOT button to generate the Gantt chart.
- After the chart is created, complete the table using the following formulas:
Completion Time (CT) = Start Time (from the chart) + Burst Time
Turn Around Time (TAT) = Completion Time - Arrival Time
Waiting Time (WT) = Turn around time - Burst Time
- To verify the entered values, click the CHECK button.
- Calculate the average TAT by entering the required values from the table and click the SUBMIT button.
- Calculate the average WT by entering the required values from the table and click the SUBMIT button.
- Click the PRINT button to print the page.
Note: When multiple processes have the same priority and arrival time, a final tie-breaker is implemented using the process ID, with the lower process ID chosen to determine the execution order.