-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (218 loc) · 10.2 KB
/
index.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html>
<head>
<title>Simulator</title>
<!-- style files -->
<link rel="stylesheet" href="css/jquery.mobile-1.0rc2.min.css"/>
<link rel="stylesheet" href="css/website.css" type="text/css" media="screen"/>
<!-- vendor files -->
<script type="text/javascript" src="js/vendor/jquery-1.7b2.js"></script>
<script type="text/javascript" src="js/vendor/jquery.mobile-1.0rc2.min.js"></script>
<script type="text/javascript" src="js/vendor/slider/jquery.tinycircleslider.min.js"></script>
<!-- event handler -->
<script type="text/javascript" src="js/scheduler.js"></script>
<!-- algorithm files -->
<script type="text/javascript" src="js/algo/fcfs.js"></script>
<script type="text/javascript" src="js/algo/spn.js"></script>
<script type="text/javascript" src="js/algo/srn.js"></script>
<script type="text/javascript" src="js/algo/rr.js"></script>
<!-- utility files -->
<script type="text/javascript" src="js/util/queue.js"></script>
<script type="text/javascript" src="js/util/util.js"></script>
</head>
<body>
<!-- begin first page -->
<section id="page1" data-role="page" data-theme="a">
<header data-role="header" data-position="fixed"><h1>Process Scheduler</h1></header>
<nav data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active">Title</a></li>
<li><a href="#page2">Scheduler</a></li>
<li><a href="#page3" data-rel="dialog">Tutorial</a></li>
</ul>
</nav>
<div data-role="content" class="content">
<!--<div>-->
<table>
<tr>
<td>
<embed src=http://flash-clocks.com/free-flash-clocks-blog-topics/free-flash-clock-183.swf width=200
height=200 wmode=transparent type=application/x-shockwave-flash></embed>
</td>
<td> </td>
<td><h1 id="processScheduler">Process Scheduler</h1></td>
<td width="425"></td>
<td>
<div id="rotatescroll">
<div class="viewport">
<ul class="overview">
<li><img src="img/hdr9.jpg"/></li>
<li><img src="img/hdr9.jpg"/></li>
</ul>
</div>
<div class="dot"></div>
<div class="overlay"></div>
<div class="thumb"></div>
</div>
<br/>
</td>
</tr>
<tr>
<td colspan="100">Affecting optimization of the System-Performance</td>
</tr>
</table>
<!-- </div> -->
</div>
<footer data-role="footer" data-position="fixed">© <a href="http://pk.linkedin.com/pub/zeeshan-hassan-memon/4b/631/4a3/" target="_blank" class="ui-link">Zeeshan Hassan</a></footer>
</section>
<!-- end first page -->
<!-- Begin second page -->
<section id="page2" data-role="page">
<nav data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active">Title</a></li>
</ul>
</nav>
<div data-role="content" class="content">
<p>
<form name="form1">
<table>
<tr>
<td></td>
<td><input type="text" name="NoOfprocesses" id="NoOfprocesses" title="eg 3"/></td>
</tr>
<tr>
<td></td>
<td><input type="text" name="arrivalTime" id="arrivalTime" title="eg 0,1,3"/></td>
<td>
<blockquote></blockquote>
</td>
<td>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Select Algorithm</legend>
<input type="radio" name="radioalgo" value="fcfs" id="radio-fcfs" checked="checked">
<label for="radio-fcfs">FCFS</label>
<input type="radio" name="radioalgo" value="spn" id="radio-spn"
data-spn="it dznt work on nop:1 and some other input(not detected exactly yet)">
<label for="radio-spn">SPN</label>
<input type="radio" name="radioalgo" value="srn" id="radio-srn">
<label for="radio-srn">SRN</label>
<input type="radio" name="radioalgo" value="rr" id="radio-rr">
<label for="radio-rr">RR-1</label>
</fieldset>
</td>
</tr>
<tr>
<td></td>
<td><input type="text" name="serviceTime" id="serviceTime" title="eg 6,2,4"/></td>
<td>
<blockquote></blockquote>
</td>
<td><input type="button" onClick="reset();" value="Reset" title="Reset All Values"></td>
</tr>
</table>
</form>
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" id="onSchedule" title="Schedule">Schedule</a>
<a href="#" data-role="button" id="onRefresh" title="Schedule new scenario!">Clear</a>
</div>
<canvas id="canvas" width="965" height="385"> Your Current Browser Doest Not Support This Feature! Go
Tutorial->Chrome Download
</canvas>
</div>
</section>
<!-- end second page -->
<!-- begin third page -->
<section id="page3" data-role="page">
<header data-role="header" data-position="fixed"><h1>Tutorial</h1></header>
<nav data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active" data-transition="slide">Title</a></li>
<li><a href="#page2" data-transition="slideup">Scheduler</a></li>
<li><a href="#page4" data-transition="slideup">Round-Robin</a></li>
<li><a href="#page5" data-transition="slideup">Shortes Job Next</a></li>
</ul>
</nav>
<div data-role="content" class="content">
<table>
<tr>
<td><p id="SchedulingPara"></p></td>
<td></td>
<td><img src="img/qImage2.png" width="190" height="160"/>
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" id="onChromeDownload" title="chromeDownload">Chrome</a>
</div>
<div data-role="fieldcontain">
<input type="search" name="password" id="search" value=""/>
</div>
</td>
</tr>
</table>
</div>
<footer data-role="footer" data-position="fixed"><h1>© <a href="http://pk.linkedin.com/pub/zeeshan-hassan-memon/4b/631/4a3/" target="_blank" class="ui-link">Zeeshan Hassan</a></h1></footer>
</section>
<!-- end third page -->
<!-- page 4 start -->
<section id="page4" data-role="page" data-theme="a">
<header data-role="header" data-position="fixed">
<h1> Round-Robin</h1>
</header>
<nav data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active">Title</a></li>
<li><a href="#page2" data-transition="slidedown">Scheduler</a></li>
<li><a href="#page3" data-transition="slidedown">Roll-back</a></li>
<li><a href="#page5" data-transition="slidedown">Shortes Job Next</a></li>
</ul>
<div class="content" data-role="content">
<h3> Round Robin </h3>
<table>
<tr>
<td><p id="RRPara">It is similar to FCFS with preemption added.Round-Robin Scheduling is also called
as time-slicing scheduling and it is a preemptive version based on a clock. That is a clock
interrupt is generated at periodic. When the interrupt occurs, the currently running process is
placed in the ready queue and the next ready job is selected on a First-come, First-serve basis.
This process is known as time-slicing, because each process is given a slice of time before
being preempted.
One of the following happens:The process may have a CPU urst of less than the time quantum or
CPU burst of currently executing process be longer than the time quantum. In this case the a
context switch occurs the process is put at the tail of the ready queue.
</p></td>
<td></td>
<td><img src="img/rrScreen.png" width="570" height="410"/></td>
</tr>
</table>
</div>
<footer data-role="footer" data-position="fixed">
<h3>© <a href="http://pk.linkedin.com/pub/zeeshan-hassan-memon/4b/631/4a3/" target="_blank" class="ui-link">Zeeshan Hassan</a></h3>
</footer>
</section>
<!-- page 4 end -->
<!-- page 5 start -->
<section id="page5" data-role="page" data-theme="a">
<header data-role="header" data-position="fixed">
<h1> Shortest Job Next </h1>
</header>
<nav data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active">Title</a></li>
<li><a href="#page2" data-transition="slidedown">Scheduler</a></li>
<li><a href="#page4" data-transition="slidedown">Round-Robin</a></li>
<li><a href="#page3" data-transition="slidedown">Roll-back</a></li>
</ul>
<div class="content" data-role="content" data-track-theme="f">
<h3> Shortest Process Next </h3>
<table>
<tr>
<td><p id="SPNPara"> here</p></td>
<td></td>
<td><img src="img/spnScreen.png" width="570" height="410"/></td>
</tr>
</table>
</div>
<footer data-role="footer" data-position="fixed">
<h3>© <a href="http://pk.linkedin.com/pub/zeeshan-hassan-memon/4b/631/4a3/" target="_blank" class="ui-link">Zeeshan Hassan</a></h3>
</footer>
</section>
</body>
</html>