-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti_queue.html
More file actions
69 lines (62 loc) · 1.65 KB
/
multi_queue.html
File metadata and controls
69 lines (62 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ProcessorGuru - Multilevel Queue Scheduling</title>
<link rel="stylesheet" href="multi_queue.css" />
</head>
<body>
<h1 class="title">ProcessorGuru ⚙️ Multilevel Queue Scheduling Visualizer</h1>
<div class="input-section">
<table id="processTable">
<thead>
<tr>
<th>PID</th>
<th>Arrival Time</th>
<th>Burst Time</th>
<th>Queue No (1=High, 2=Low)</th>
<th>Action</th>
</tr>
</thead>
<tbody id="processBody"></tbody>
</table>
<button onclick="addProcess()">Add Process</button>
<button onclick="runMultiQueue()">Run Multi-Queue</button>
<button onclick="resetAll()">Reset</button>
</div>
<div class="chart-container">
<h2>Gantt Chart</h2>
<div id="ganttChart" class="gantt-chart"></div>
<div id="timeline" class="timeline"></div>
</div>
<div class="results">
<h2>Results</h2>
<table id="resultTable">
<thead>
<tr>
<th>PID</th>
<th>Queue</th>
<th>Arrival</th>
<th>Burst</th>
<th>Completion</th>
<th>TAT</th>
<th>WT</th>
</tr>
</thead>
<tbody id="resultBody"></tbody>
</table>
</div>
<div class="stats">
<h2>CPU Stats</h2>
<p id="avgTAT"></p>
<p id="avgWT"></p>
<p id="cpuUtil"></p>
<p id="idleTime"></p>
</div>
<div class="actions">
<button onclick="exportCSV()">Export to CSV</button>
</div>
<script src="multi_queue.js"></script>
</body>
</html>