-
Notifications
You must be signed in to change notification settings - Fork 1
/
os_sim.html
534 lines (469 loc) · 19.8 KB
/
os_sim.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
<!DOCTYPE html>
<html>
<title>OS Simulator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
height: 100%;
color: #777;
line-height: 1.8;
}
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* First image (Logo. Full height) */
.bgimg-1 {
background-image:url("file:///Users/ayush/Desktop/Os/chaitany10.github.io/wiki-sample/back.jpg");
min-height: 100%;
}
/* Second image (Portfolio) */
.bgimg-2 {
background-image: url("http://www.youthincmag.com/wp-content/uploads/2017/04/best-books-book-youll-ever-read.jpg");
min-height: 400px;
}
/* Third image (Contact) */
.bgimg-3 {
background-image: url("http://www.expresspros.co.za/wp-content/uploads/2015/09/7er_Team_Meditrainment.png");
min-height: 400px;
}
.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1024px) {
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: scroll;
}
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
}
.title {
color: grey;
font-size: 18px;
}
button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
}
a {
text-decoration: none;
font-size: 22px;
color: black;
}
button:hover, a:hover {
opacity: 0.7;
}
#myNavbar a
{
color:white;
/* background-color: black;
*/}
.images img{
height: 150px;
}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar" id="myNavbar">
<a class="w3-bar-item w3-button w3-hover-black w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
<i class="fa fa-bars"></i>
</a>
<a href="#home" class="w3-bar-item w3-button">HOME</a>
<a href="#about" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-user"></i> Details About Topics</a>
<a href="#portfolio" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-th"></i> Topics</a>
<a href="#contact" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-envelope"></i> Team members</a>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
<a href="#about" class="w3-bar-item w3-button" onclick="toggleFunction()">ABOUT Topics</a>
<a href="#portfolio" class="w3-bar-item w3-button" onclick="toggleFunction()">Topics</a>
<a href="#contact" class="w3-bar-item w3-button" onclick="toggleFunction()">Team members</a>
</div>
</div>
<!-- First Parallax Image with Logo Text -->
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">
<div class="w3-display-middle" style="white-space:nowrap;">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity"><span class="w3-hide-small">OS</span> SIMULATOR 2K19</span>
</div>
</div>
<!-- Container (About Section) -->
<div class="w3-content w3-container w3-padding-64" id="about">
<h3 class="w3-center">ABOUT Topics</h3>
<p class="w3-center"><em>Some of the topics are shown here with Short Description.</em></p>
<!--about 1st topic-->
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Disc Scheduling</strong></b></p><br>
<img src="http://www.cs.iit.edu/~cs561/cs450/disksched/fcfs.bmp" alt="Photo of Me" width="500" height="333">
</div>
<!-- Hide this text on small devices -->
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>Disk scheduling is is done by operating systems to schedule I/O requests arriving for disk. Disk scheduling is also known as I/O scheduling.<br>There are mainly 6 types of Disc scheduling examined here.They are<br>
1. FCFS(First Come First Serve)<br> 2. SSTF(shortest seek time first)<br>3. SCAN<br>4. C-SCAN<br>5. LOOK<br>6. C-LOOK<br>
All these schedulings are examined and Total Head Movements are Compared.</p>
</div>
</div>
<!--2nd topic-->
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">File Allocation</strong></b></p><br>
<img src="https://cdn-images-1.medium.com/max/670/1*wPqqYFfNreXF4INrNhYkeQ.jpeg" alt="Photo of Me" width="500" height="333">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large" align="w3-right">
<p>The allocation methods define how the files are stored in the disk blocks. There are three main disk space or file allocation methods.
<br>1. Contiguous Allocation
<br>2. Linked Allocation
<br>3. Indexed Allocation<br><br>
The main idea behind these methods is to provide:
<strong> Efficient disk space utilization</strong>,
<strong> Fast access to the file blocks.</strong>
</p>
</div>
</div>
<!--3rd topic-->
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Deadlock</strong></b></p><br>
<img src="https://cs.nyu.edu/courses/spring03/V22.0202-002/figs/resource-alloc.png" align="left" alt="Photo of Me" width="500" height="333">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>Explaination For the topic 3 given here........line num: 158</p>
</div>
</div>
<!--4th topic-->
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Process Scheduling</strong></b></p><br>
<img src="https://www.tutorialspoint.com/operating_system/images/queuing_diagram.jpg" align="left" alt="Photo of Me" width="500" height="333">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>Following algorithms are implemented for process scheduling</p>
<li>
<strong style="font-family: inherit;">FCFS</strong><br> </li>
<li> <strong style="font-family: inherit;">SJF Preemptive</strong><br> </li>
<li> <strong style="font-family: inherit;">SJF Non Preemptive</strong><br>
</li>
<li>
<strong style="font-family: inherit;">LJF</strong><br> </li>
<li>
<strong style="font-family: inherit;">LRTF</strong><br> </li>
<li>
<strong style="font-family: inherit;">Priority Preemptive</strong><br> </li>
<li>
<strong style="font-family: inherit;">Priority Non Preemptive</strong><br> </li>
<li>
<strong style="font-family: inherit;">Round Robin Scheduling</strong><br> </li>
<li>
<strong style="font-family: inherit;">Highest Response Ratio Next</strong><br> </li>
</div>
</div>
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Client-Server Communication</strong></b></p><br>
<img src="https://cdn.tutsplus.com/gamedev/uploads/2013/08/img1_server_client.png" align="left" alt="Photo of Me" width="500" height="333">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>
Clients and servers exchange messages in a request–response messaging pattern.
The client sends a request, and the server returns a response. This exchange
of messages is an example of inter-process communication.
<br><br>Since there is not much simulation involved in demonstrating the
communication, we have added animated videos to aid in understanding the concepts.
<br><br>More About Client-Server Communication is on the link provided in the "Topics" section
</p>
</div>
</div>
<!--topic 6-->
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Synchronization</strong></b></p><br>
<img src="https://www.sapling-inc.com/blog/wp-content/uploads/2012/07/GettyImages_85406496.jpg" align="left" alt="Photo of Me" width="450" height="330">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>Process Synchronization means sharing system resources by processes in a such a way that</p>
<p>Concurrent access to shared data is handled thereby minimizing the chance of inconsistent data</p>
<p>Maintaining data consistency demands mechanisms to ensure synchronized execution of cooperating processes.</p>
<p>There are five problems implemented here </p>
<li>
<strong style="font-family: inherit;">Producer Consumer</strong><br> </li>
<li> <strong style="font-family: inherit;">Reader writer</strong><br> </li>
<li> <strong style="font-family: inherit;">Barrier Problem</strong><br>
</li>
<li>
<strong style="font-family: inherit;">Dining Philosopher</strong><br> </li>
<li>
<strong style="font-family: inherit;">Sleeping Barber</strong><br> </li>
</div>
</div>
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">Non-Contiguous Memory Management</strong></b></p><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/be/Page_table_actions.svg/440px-Page_table_actions.svg.png" align="left" alt="page alloc" width="450" height="330">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<p>Non-Contiguous memory management has been shown here using different page replacement techniques. The algorithms used are </p>
<li>
<strong style="font-family: inherit;">FIFO</strong><br> </li>
<li> <strong style="font-family: inherit;">LRU</strong><br> </li>
<li> <strong style="font-family: inherit;">Optimal</strong><br>
<li>
<strong style="font-family: inherit;">Second chance</strong><br> </li>
<li>
<strong style="font-family: inherit;">Example of Belady's Anomaly</strong><br> </li>
<li>
<strong style="font-family: inherit;">Comparison of all scheduling</strong><br> </li>
</li>
</div>
</div>
<div class="w3-row">
<div class="w3-col m6 w3-center w3-padding-large">
<p><b><i class="fa fa-user w3-margin-right"></i><strong style="font-size: 25px">MFT and MVT</strong></b></p><br>
<img src="http://www.cs.nott.ac.uk/~pszgxk/courses/g53ops/images/OS-MFT.jpg" align="left" alt="page alloc" width="450" height="330">
</div>
<div class="w3-col m6 w3-hide-small w3-padding-large">
<h4>Multiprogramming with Fixed Tasks (MFT)</h4>
<ul>
<li>Memory is divided into several fixed-size partitions</li>
<li>Each partition may contain exactly one process/task</li>
</ul>
<h4>Multiprogramming with Variable Tasks (MVT)</h4>
<ul>
<li>Partitions of variable length and number</li>
<li>When a process is brought into main memory, it is allocated exactly as much memory as it requires</li>
</ul>
</div>
</div>
</div>
<!-- <div class="w3-row w3-center w3-dark-grey w3-padding-16">
<div class="w3-quarter w3-section">
<span class="w3-xlarge">14+</span><br>
Server-Client
</div>
<div class="w3-quarter w3-section">
<span class="w3-xlarge">55+</span><br>
Deadlocks
</div>
<div class="w3-quarter w3-section">
<span class="w3-xlarge">89+</span><br>
File allocation
</div>
<div class="w3-quarter w3-section">
<span class="w3-xlarge">150+</span><br>
Disk Scheduling
</div>
</div> -->
<!-- Second Parallax Image with Portfolio Text -->
<div class="bgimg-2 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-xxlarge w3-text-white w3-wide">TOPICS</span>
</div>
</div>
<!-- Container (Portfolio Section) -->
<div class="w3-content w3-container w3-padding-64" id="portfolio">
<h3 class="w3-center">Below are the topics to SIMULATE</h3>
<p class="w3-center"><em>Here are the essential topics<br> Click on the images to simulate the respective topic</em></p><br>
<!-- Responsive Grid. Four columns on tablets, laptops and desktops. Will stack on mobile devices/small screens (100% width) -->
<div class="images">
<div class="w3-row-padding w3-center">
<div class="w3-col m3">
<p><strong>Process Scheduling</strong></p>
<a href="Scheduling/index.html"> <img src="https://www.colourbox.com/preview/2225350-people-standing-one-after-another-before-the-closed-door.jpg" style="width:120px" class="w3-hover-opacity" alt="Process Scheduling"></a>
</div>
<div class="w3-col m3">
<p><strong>Deadlocks</strong></p>
<a href="Deadlock/index.html"> <img src="http://108.61.119.12/wp-content/uploads/2014/05/Gridlock.svg_.png" style="width:100px " class="w3-hover-opacity" alt="Deadlocks"></a>
</div>
<div class="w3-col m3">
<p><strong>Disc Scheduling</strong></p>
<a href="disk/disk_scheduling.html"> <img src="http://www.programering.com/images/remote/ZnJvbT1jbmJsb2dzJnVybD1uQm5hdWdUWWpKak56UTJNd0lHTTJVR1oySTJNakZHTmtWR016WVdaNE16WTNJVFl0RURNd0V6TnhVVE12Y0RNekVETXk4eU4xa3pOMTh5WnZ4bVl2MDJiajV5WnZ4bVkwbG1iajV5Y2xkV1l0bDJMdm9EYzBSSGE.jpg" style="width:140px " class="w3-hover-opacity" alt="disc Scheduling"></a>
</div>
<div class="w3-col m3">
<p><strong>Client-Server Communication</strong></p>
<a href="Server-Client-Comm/cli_ser.html"> <img src="http://www.alhutaib.com/wp-content/uploads/2017/02/networking.jpg" style="width:140px " class="w3-hover-opacity" alt="Server-client"></a>
</div>
<div class="w3-col m3">
<p><strong>Synchronization</strong></p>
<a href="Syncronization/index.html"> <img src="https://www.handybackup.net/images/icons/synchronize-folders-200.png" style="width:100px " class="w3-hover-opacity" alt="file allocation"></a>
</div>
<div class="w3-col m3">
<p><strong>MFT and MVT</strong></p>
<a href="memory/index.html"> <img src="http://arcbotics.com/wp-content/uploads/2016/09/21.Memory-management-250x250.png" style="width:150px " class="w3-hover-opacity" alt="Memory Management(MFT and MVT)"></a>
</div>
<div class="w3-col m3">
<p><strong>Non-Contiguous Memory Management</strong></p>
<a href="OS-final/index.html"> <img src="http://www.naisp.net/koconnor/htmlclass/images/12-1-frameset.gif" style="width:120px " class="w3-hover-opacity" alt="file allocation"></a>
</div>
<div class="w3-col m3">
<p><strong>File allocation</strong></p>
<a href="file-allocation/index_page.html"> <img src="https://cdn-images-1.medium.com/max/670/1*wPqqYFfNreXF4INrNhYkeQ.jpeg" style="width:220px " class="w3-hover-opacity" alt="file allocation"></a>
</div>
</div>
</div>
</div>
<!-- Modal for full size images on click-->
<div id="modal01" class="w3-modal w3-black" onclick="this.style.display='none'">
<span class="w3-button w3-large w3-black w3-display-topright" title="Close Modal Image"><i class="fa fa-remove"></i></span>
<div class="w3-modal-content w3-animate-zoom w3-center w3-transparent w3-padding-64">
<img id="img01" class="w3-image">
<p id="caption" class="w3-opacity w3-large"></p>
</div>
</div>
<!-- Third Parallax Image with Portfolio Text -->
<div class="bgimg-3 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-xxlarge w3-text-black w3-wide">TEAM MEMBERS</span>
</div>
</div>
<!--
<div class="w3-content w3-container w3-padding-64" id="contact">
<h3 class="w3-center">NITK, Surathkal</h3>
<p class="w3-center"><em>I'd love your feedback!</em></p>
<h2 style="text-align:center">User Profile Card</h2>
<div class="card">
<img src="/w3images/team2.jpg" alt="samyak" style="width:100%">
<h1>Samyak Jain</h1>
<p class="title">16CO254,CSE</p>
<p>NITK</p>
<div style="margin: 24px 0;">
<a href="#"><i class="fa fa-dribbble"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
</div>
<p><button>Contact</button></p>
</div>
</div>-->
<div class="w3-container" style="padding:128px 16px" id="contact">
<table>
<tr>
<th>Member Name</th>
<th>Roll Number</th>
</tr>
<tr>
<td>Ayush Kumar</td>
<td>17CO111</td>
</tr>
<tr>
<td>Chaitany Pandiya</td>
<td>17CO112</td>
</tr>
<tr>
<td>Chethan</td>
<td>17CO113</td>
</tr>
<tr>
<td>Deepak K</td>
<td>17CO114</td>
</tr>
<tr>
<td>Dhanuesh</td>
<td>17CO115</td>
</tr>
<tr>
<td>Gauri V.Nair</td>
<td>17CO116</td>
</tr>
<tr>
<td>Govardhan G D</td>
<td>17CO117</td>
</tr>
<tr>
<td>Hemanth Reddy</td>
<td>17CO118</td>
</tr>
<tr>
<td>K Rahul Reddy</td>
<td>17CO119</td>
</tr>
</table>
</div>
<!-- Footer -->
<footer class="w3-center w3-black w3-padding-64 w3-opacity w3-hover-opacity-off">
<a href="#home" class="w3-button w3-light-grey"><i class="fa fa-arrow-up w3-margin-right"></i>To the top</a>
<p>By <a href="https://www.w3schools.com/w3css/default.asp" title="CSE" target="_blank" class="w3-hover-text-green">CSE batch 2019</a></p>
</footer>
<!-- Add Google Maps -->
<script>
function myMap()
{
myCenter=new google.maps.LatLng(41.878114, -87.629798);
var mapOptions= {
center:myCenter,
zoom:12, scrollwheel: false, draggable: false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
var marker = new google.maps.Marker({
position: myCenter,
});
marker.setMap(map);
}
// Modal Image Gallery
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
var captionText = document.getElementById("caption");
captionText.innerHTML = element.alt;
}
// Change style of navbar on scroll
window.onscroll = function() {myFunction()};
function myFunction() {
var navbar = document.getElementById("myNavbar");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
navbar.className = "w3-bar"
navbar.className = + " w3-card" + " w3-animate-top" + " w3-black";
} else {navbar.className.replace(" w3-card w3-animate-top w3-white", "");
}
}
// Used to toggle the menu on small screens when clicking on the menu button
function toggleFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&callback=myMap"></script>
<!--
To use this code on your website, get a free API key from Google.
Read more at: https://www.w3schools.com/graphics/google_maps_basic.asp
-->
</body>
</html>