File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 11# CPU Scheduling Algorithm (os simulator)
2- <p align =' right ' >
2+ <p align =' center ' >
33 <img src="photos/cpu-sch-algo-logo.png" alt="cpu-scheduling-algos" />
44</p >
55
@@ -17,4 +17,36 @@ This is an OS simulation that has been implemented by the CPU scheduling algorit
1717 <img src="photos/csa.png" width="600" alt="cpu-scheduling-algos" />
1818</p >
1919
20+ <br >
21+
22+ ## Program Input
23+ Input data must be entered through a comma-separated values (.csv) and the columns must be like this:
24+
25+ | process_id | arrival_time | cpu_time1 | io_time | cpu_time2 |
26+ | :---: | :---: | :---: | :---: | :---: |
27+ | 1 | 1 | 2 | 3 | 4 |
28+ | 2 | 12 | 3 | 4 | 1 |
29+ | 3 | 5 | 4 | 5 | 3 |
30+ | 4 | 13 | 4 | 5 | 15 |
31+ | 5 | 13 | 5 | 6 | 7 |
2032
33+ you can see and download test file ** <a href =" test/process_input_data.csv " >here</a >**
34+
35+ ## Program Output
36+ 1 . the program will process the processes and will calculate these information:
37+ - Response Time
38+ - Turnaround Time
39+ - Waiting Time
40+ - Process' Start Time
41+ - Process' End Time
42+ 2 . after running the algorithms for each processes these parameteres will be shown for the algorithm:
43+ - Total Time and Idle Time
44+ - Average Waiting Time
45+ - Average Response Time
46+ - Average Turnaround Time
47+ - CPU Utilization
48+ - Throughput
49+
50+ <p align =' right ' >
51+ <img src="photos/output.png" alt="output" />
52+ </p >
You can’t perform that action at this time.
0 commit comments