-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (107 loc) · 4.57 KB
/
index.html
File metadata and controls
121 lines (107 loc) · 4.57 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
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
<!-- https://www.w3schools.com/howto/howto_js_navbar_sticky.asp-->
<!Doctype html>
<head>
<title>Disk Scheduling</title>
<link rel="stylesheet" href="home.css">
<link rel="shortcut icon" href="logo.png">
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> -->
<script src="home.js"></script>
</head>
<body>
<!--navbar-->
<div id="navbar">
<img id="logo" src="logo.png" >
<a class="navbar-brand" href="index.html">Disk Scheduling</a>
</div>
<div class="content">
<!--visualization-->
<div class="block1">
<div class="overlay"></div>
<div class="heading">
<h1 style="text-align: center;">DISK SCHEDULING</h1>
</div>
<div class="typing">
<!-- <h2 class="include-k">Includes: </h2> -->
<span id="n" class="type-writer" data-wait="2000"
data-words='["FCFS", "SSTF", "SCAN", "C-SCAN", "LOOK", "C-LOOK"]'></span>
</div>
<div class="arrow-box">
<img src="arrow.png" alt="downward Arrow">
</div>
</div>
<hr>
<!--content-->
<!--about-->
<div class="about-k">
<h1 style="margin: 0px;">About</h1>
</div>
<!--info-->
<div class="infocard">
<p>A process needs two type of time, CPU time and IO time.</p>
<p>For I/O,it requests the Operating system to access the disk.</p>
<p>Disk scheduling is done by operating systems to schedule I/O requests arriving for the disk.</p>
</div>
<div class="infocard">
<p style="font-weight: 700;">Disk Scheduling is important because:</p>
<p>1. Multiple I/O requests may arrive by different processes and only one I/O requests can be served at a time by the disk controller.Thus other I/O requests need to wait in the waiting queue and need to be scheduled.</p>
<p>2.Two or more request may be far from each other so can result in the greater disk arm movement.</p>
<p>3.Hard drives need to be acessed in an efficient manner as they are the slowest parts of the computer system.</p>
</div>
<div class="infocard">
<p style="font-weight: 700;">Some of the important terms:</p>
<p style="font-weight: 700;">Seek Time:</p>
<p>Seek time is the time taken to locate the disk arm to a specified track where the data is to be read or write. So the disk scheduling algorithm that gives minimum average seek time is better.</p>
<p style="font-weight: 700;">Rotational Latency:</p>
<p>Rotational Latency is the time taken by the desired sector of disk to rotate into a position so that it can access the read/write heads. The disk scheduling algorithm that gives minimum rotational latency is better.</p>
<p style="font-weight: 700;">Transfer Time:</p>
<p> Transfer time is the time to transfer the data. It depends on the rotating speed of the disk and number of bytes to be transferred.</p>
<p style="font-weight: 700;">Disk Access Time = Seek Time + Rotational Latency + Tranfer time</p>
</div>
<hr>
<!-- algorithms -->
<div class="about-k">
<h1> Algorithms </h1>
</div>
<div class="full">
<div class="algos">
<div class="card">
<a class="card-title" href="fcfs.html">FCFS </a>
<div class="card-text">
<p>Requests are served in the order that they arrive.</p>
</div>
</div>
<div class="card">
<a class="card-title" href="sstf.html">SSTF</a>
<div class="card-text">
<p>Request with lowest seek time is executed first.</p>
</div>
</div>
<div class="card">
<a class="card-title" href="scan.html">SCAN</a>
<div class="card-text">
<p>All requests arriving in the path are addressed. Head moves till the end
track.</p>
</div>
</div>
<div class="card">
<a class="card-title" href="cscan.html">C-SCAN </a>
<div class="card-text">
<p>Similar to that of SCAN. Requests are addressed when the head moves in a
single direction.</p>
</div>
</div>
<div class="card">
<a class="card-title" href="look.html">LOOK </a>
<div class="card-text">
<p>Similar to SCAN, but the head moves only till the last request.</p>
</div>
</div>
<div class="card">
<a class="card-title" href="clook.html">C-LOOK</a>
<div class="card-text">
<p>Similar to C-SCAN, but the head moves only till the first and last request.</p>
</div>
</div>
</div>
</div>
</body>