SJF and SRTF scheduling programs with Gantt charts and captured output
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5v46dt7TVsHZxtoYC
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
Non-preemptive SJF
|
||||
|
||||
PID AT BT CT TAT WT
|
||||
P1 0 2 2 2 0
|
||||
P2 6 3 9 3 0
|
||||
P3 7 1 10 3 2
|
||||
|
||||
Average waiting time : 0.67
|
||||
Average turnaround time : 2.67
|
||||
|
||||
Gantt chart:
|
||||
| P1 | idle | P2 | P3 |
|
||||
0 2 6 9 10
|
||||
Reference in New Issue
Block a user