1
+ < html >
2
+ < head >
3
+ < link rel ="stylesheet " href ="./style.css ">
4
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js "> </ script >
5
+ < title > OS Scheduling Project</ title >
6
+ </ head >
7
+ < body >
8
+ < h1 > CPU Scheduling</ h1 >
9
+ < form >
10
+ < div style ="text-align: center; "> Select Your CPU Algorithm</ div >
11
+ < div id ="radio ">
12
+ < input type ="radio " name ="type " id ="SJF " onclick ="radioClicked(this.id) ">
13
+ < label for ="SJF "> SJF</ label >
14
+ < br >
15
+
16
+ < input type ="radio " name ="type " id ="FCFS " onclick ="radioClicked(this.id) ">
17
+ < label for ="FCFS "> FCFS</ label >
18
+ < br >
19
+
20
+ < input type ="radio " name ="type " id ="RR " onclick ="radioClicked(this.id) ">
21
+ < label for ="RR "> Round Robin</ label >
22
+ </ div >
23
+ < br > < br >
24
+ < br > < br >
25
+ < div >
26
+ Enter Arrival Time
27
+ < span > < input type ="number " min ="0 " id ="AT " placeholder ="Enter Arrival Time " style ="height: 30px; font-family: cursive; background-color: white; color: black; border: 2px solid black; "> </ span >
28
+ < br > < br >
29
+ < br >
30
+ Enter Burst Time
31
+ < span > < input type ="number " min ="0 " id ="BT " placeholder ="Enter Burst Time " style ="height: 30px; font-family: cursive; background-color: white; color: black; border: 2px solid black; "> </ span >
32
+ < br > < br >
33
+ < br >
34
+ < span id ="timequanta " style ="left: 0; display: none; ">
35
+ Enter Time Quanta
36
+ < span > < input type ="number " min ="0 " id ="TQ " placeholder ="Enter Time Quanta " style ="height: 30px; font-family: cursive; background-color: white; color: black; border: 2px solid black; "> </ span >
37
+ </ span >
38
+ </ div >
39
+ < br >
40
+ </ form >
41
+ < table id ="table " style ="width: 100%; ">
42
+ < thead > < tr > < th colspan ="7 " style ="width: 100%; text-align: center; "> SCHEDULING TABLE</ th > </ tr > </ thead > < tbody > < tr > < td style ="width: 14%; "> Process ID</ td > < td style ="width: 14%; "> Arrival Time</ td > < td style ="width: 14%; "> Burst Time</ td > < td style ="width: 14%; "> Response Time< br > </ td > < td style ="width: 16%; "> Turn Around Time</ td > < td style ="width: 14%; "> Completion Time</ td > < td style ="width: 12%; "> Waiting Time</ td > </ tr > </ tbody >
43
+ </ table >
44
+ < br > < br >
45
+
46
+ < button type ="button " id ="add " onclick ="addRow() "> Add a Row +</ button >
47
+ < button type ="button " id ="delete " onclick ="deleteRow() "> Delete a Row -
48
+ </ button >
49
+ < div id ="average "> Average Completion Time = < input type ="text " id ="averagebox1 " placeholder ="0 " readonly > </ div >
50
+ < br > < br >
51
+ < button type ="button " id ="execute " onclick ="calculate() "> Execute</ button >
52
+ < div id ="average "> Average Turn Around Time = < input type ="text " id ="averagebox2 " placeholder ="0 " readonly > </ div >
53
+ < br > < br >
54
+
55
+ < div id ="animator " style ="display: block; position: relative; ">
56
+ < span id ="cover " style ="display: block; position: absolute; margin: 0; top: 0; left: 0; width: 100%; height: 100px; background-color: whitesmoke; z-index: 8; ">
57
+ </ span >
58
+ < table id ="mytb " style ="display: inline; position: absolute; top: 2px; left: 2px; ">
59
+ < tr id ="processr "> </ tr >
60
+ < tr id ="timer "> </ tr >
61
+ </ table >
62
+ </ div >
63
+ </ body >
64
+ < script src ="./os.js " defer > </ script >
65
+ < script src ="./animation.js " defer > </ script >
66
+ </ html >
0 commit comments