SlideShare une entreprise Scribd logo
1  sur  41
I/O MANAGEMENT
Output
Input
I/O Devices
 I/O devices are roughly categorized into three categories:
2
I/O Devices
Human
Readable
Machine
Readable
Communicati
on
Suitable for
communicating
with computer
user
Suitable for
communicating
with electronic
equipment
Suitable for
communicating
with remote
devices
I/O Devices
 There are great differences across classes of I/O devices. Key
differences are:
 Data Rate:
 There may be differences of several orders of magnitude between the
data transfers.
 Application:
 The use to which a device is put has an influence on the software and
policies in the OS and supporting utilities.
 Complexity of control:
 E.g. a printer requires a relatively simple control interface while a disk is
much more complex.
 Unit of transfer:
 Data may be transferred as a stream of bytes or characters or in a large
block.
3
I/O Devices
 There are great differences across classes of I/O devices. Key
differences are:
 Data Representation:
 Different data encoding schemes are used by different devices,
including differences in character code and parity conventions.
 Error conditions:
 The nature of errors, the way in which they are reported, their
consequences and the available range of responses differ widely from
one device to another
 This diversity makes it difficult to achieve a uniform and
consistent approach to I/O for both OS as well as for user
processes.
4
Organization of the I/O Function
 There are three approaches for performing I/O:
5
I/O
Programm
ed I/O
Interrupt
Driven I/O
Direct
Memory
Access
(DMA)
Organization of the I/O Function
 Programmed I/O
 The processor issues an I/O command, on behalf of a process, to an I/O
module.
 The process then busy waits for the operation to be completed before
proceeding.
 Interrupt driven I/O
 The processor issues an I/O command, on behalf of a process.
 If the I/O instruction is non-blocking, the processor continues to execute
instructions from the process that issued the I/O command.
OR
 If the I/O instruction is blocking, then the next instruction that processor
executes is from OS, which will put current process in a blocked state and
schedule another process.
6
Organization of the I/O Function
 Direct Memory Access (DMA)
 Controls the exchange of data between main memory and an I/O module.
 The processor sends a request for the transfer of a block of data to the
DMA module and is interrupted only after the entire block has been
transferred.
7
No Interrupts Use of Interrupts
I/O-to-Memory
transfer through
Processor
Programmed I/O Interrupt driven I/O
Direct I/O-to-Memory
transfer
Direct Memory Access
I/O Techniques
Organization of the I/O Function
 Direct Memory Access (DMA)
 The DMA is capable of
mimicking the processor and,
of taking over control of system
bus just like a processor.
 It transfers data to and from
memory over the system bus.
 When the processor wishes to
read or write a block of data, it
issues a command to a DMA
module
8
Data
count
Data
register
Address
register
Control
Logic
Data lines
Address
lines
Request to
DMA
Acknowledgement from
DMA
Interrupt
Read
Write
DMA Block Diagram
Organization of the I/O Function
 Direct Memory Access (DMA)
 When the processor wishes to read or write a block of data, it
issues a command to a DMA module by sending following
information:
 Whether a read or write is requested, using the read or write control
line between the processor and the DMA module.
 The address of the I/O device involved, communicated on the data line.
 The starting location in memory to read from or write to,
communicated on data lines and stored by the DMA module in its
address register.
 The number of words to be read or written, again communicated via
the data lines and stored in the data count register.
9
Organization of the I/O Function
 Direct Memory Access (DMA)
 The processor delegates I/O operation to the DMA module and
continues with other work.
 DMA module transfers the entire block of data, one word at a time,
directly to or from memory, without going to a processor.
 When the transfer is complete, the DMA module sends an interrupt
signal to the processor.
10
Disk Organization
 Magnetic disks provide bulk of secondary storage for modern
computer systems.
11
Disk Organization
 The two surfaces of a platter are covered with a magnetic
material.
 Information is recorded magnetically on the platters.
 A read -write head flies just above each surface of every platter.
 The heads are attached to a disk arm that moves all the heads as a
unit.
 The surface of a platter is logically divided into circular tracks,
which are subdivided into sectors.
 The set of tracks that are at one arm position makes up a cylinder.
 There may be thousands of concentric cylinders in a disk drive,
and each track may contain hundreds of sectors.
12
Disk Organization
 Disk speed has two parts.
 The transfer rate is the rate at which data flow between the drive
and the computer.
 The positioning time, sometimes called the random-access time,
consists of the time necessary to move the disk arm to the desired
cylinder, called the seek time and the time necessary for the
desired sector to rotate to the disk head, called the rotational
latency.
 The disk head flies on an extremely thin cushion of air. Although
the disk platters are coated with a thin protective layer, the head
will sometimes damage the magnetic surface. This accident is
called a head crash.
13
Disk Organization
 A disk drive is attached to a computer by a set of wires called an
I/O bus.
 Several kinds of buses are available
 ATA (Advanced Technology Attachment
 SATA (Serial ATA)
 eSATA
 USB (Universal Serial Bus)
 FC (Fibre Channel)
 The data transfers on a bus are carried out by special electronic
processors called controller.
 Host controller is at the computer end of the bus
 Disk controller is built into each disk drive
14
15
Magnetic Tape
 Magnetic tape was used as an early secondary-storage medium.
 Information is accessed sequentially.
16
Magnetic Tape
 It can hold large quantities of data, its access time is slow
compared with that of main memory and magnetic disk.
 Random access to magnetic tape is about a thousand times slower
than random access to magnetic disk
 Tapes are used mainly for backup, for storage of infrequently
used information, and as a medium for transferring information
from one system to another.
 A tape is kept in a spool and is wound or rewound past a read-
write head.
 Tapes can store from 20GB to 200GB.
17
Disk Scheduling
 The operating system need to use the hardware efficiently.
 Disk drive is expected to have fast access time and large disk
bandwidth.
 Seek time:
 The time for the disk arm to move the heads to the cylinder containing the
desired sector.
 Rotational Latency:
 The additional time for the disk to rotate the desired sector to the disk head.
 Disk Bandwidth:
 The total number of bytes transferred, divided by the total time between the
first request for service and the completion of the last transfer.
 We can improve both the access time and the bandwidth by
managing the order in which disk I/O requests are serviced.
18
Disk Scheduling
 Whenever a process needs I/O to or from the disk, it issues a
system call to the operating system.
 The request specifies several pieces of information:
 Whether this operation is input or output
 What the disk address for the transfer is
 What the memory address for the transfer is
 What the number of sectors to be transferred is
 If the desired disk drive and controller are available, the request
can be serviced immediately.
 If the drive or controller is busy, any new requests for service will
be placed in the queue of pending requests for that drive.
19
Disk Scheduling
 FCFS Disk Scheduling
 The simplest form of disk scheduling based in first-come, first-
served (FCFS) policy.
 The algorithm is intrinsically fair, but it generally does not
provide the fastest service.
 E.g., a disk queue with requests for I/0 to blocks on cylinders in
the following order
98, 183, 37, 122, 14, 124, 65, 67
suppose, currently head starts at 53
20
Disk Scheduling
 FCFS Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67 head
starts at 53
21
0 14 37 53 65 67 98 122 124 183
199
Disk Scheduling
 FCFS Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53
22
0 14 37 53 65 67 98 122 124 183
199
45 85
14
6
85
10
8
11
0 59
2
A total head movement
of
640 cylinders.
Disk Scheduling
 SSTF Disk Scheduling
 Shortest Seek Time First (SSTF)
 It selects the request with the least seek time from the current head
position.
 Since seek time increases with the number of cylinders traversed by the
head, SSTF chooses the pending request closest to the current head
position.
 Hence, the seek time of every request is calculated in advance in the
queue and scheduled according to their seek time.
 E.g., a disk queue with requests for I/0 to blocks on cylinders in the
following order
98, 183, 37, 122, 14, 124, 65, 67
suppose, currently head starts at 53
23
Disk Scheduling
 SSTF Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53
24
0 14 37 53 65 67 98 122 124 183
199
1
2
2
3
0
2
3
8
4
2
4
2
5
9
A total head movement
of
236 cylinders.
Disk Scheduling
 SSTF Disk Scheduling
 Gives a substantial improvement in performance in comparison with
FCS.
 SSTF scheduling is essentially a form of shortest-job-first (SJF)
scheduling; and like SJF scheduling, it may cause starvation of some
requests.
 While servicing a current request, if new request arrives which is
nearest to current one, new request will be processed after this.
Again if new request comes which is closer to the previous request,
that incoming request will be served. If this goes on continue… the
initial request which are far away will be starved.
 Although the SSTF algorithm is a substantial improvement over the
FCFS algorithm, it is not optimal.
25
Disk Scheduling
 SCAN Disk Scheduling
 The disk arm starts at one end of the disk moves towards the other
end.
 It services the requests as it reaches each cylinder, until it gets to the
other end of the disk.
 At the other end, the direction of head movement is reversed, and
servicing continues.
 The head continuously scans back and forth across the disk.
 The SCAN algorithm is sometimes called the elevator algorithm, since
the disk arm behaves just like an elevator in a building.
 First it services all the requests going up and then reversing to service
requests the other way.
 E.g., a disk queue with requests for I/0 to blocks on cylinders in the
following order
98, 183, 37, 122, 14, 124, 65, 67
suppose, currently head starts at 53 and the disk arm is moving 26
Disk Scheduling
 SCAN Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67
Head starts at 53, the disk arm is moving toward 0.
27
0 14 37 53 65 67 98 122 124 183
199
1
6
2
3
1
4
2
6
5
3
1
2
4
2 5
9
A total head movement
of
236 cylinders.
Disk Scheduling
 SCAN Disk Scheduling
 If a request arrives in the queue just in front of the head, it will be
serviced almost immediately;
 A request arriving just behind the head will have to wait until the arm
moves to the end of the disk, reverses direction, and comes back.
 Assuming a uniform distribution of requests for cylinders, consider the
density of requests when the head reaches one end and reverses
direction.
 At this point, relatively few requests are immediately in front of the
head, since these cylinders have recently been serviced.
 The heaviest density of requests is at the other end of the disk. These
requests have also waited the longest so why not go there first?
28
Disk Scheduling
 C-SCAN Disk Scheduling
 Circular SCAN is a variant of SCAN scheduling designed to provide a
more uniform wait time.
 Like SCAN, C-SCAN moves the head from one end of the disk to the
other, servicing requests along the way.
 When the head reaches the other end, however, it immediately returns
to the beginning of the disk without servicing any requests on the
return trip.
 The C-SCAN scheduling algorithm essentially treats the cylinders as a
circular list that wraps around from the final cylinder to the first one.
29
Disk Scheduling
 C-SCAN Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53
30
0 14 37 53 65 67 98 122 124 183
199
2
2
2
3
1
2
4
2
5
9 1
6
199
14
23
Disk Scheduling
 LOOK and C-LOOK Disk Scheduling
 Both SCAN and C-SCAN move the disk arm across the full width of the disk.
 In practice, neither algorithm is often implemented this way.
 More common, the arm goes only as far as the final request in each direction.
 Then, it reverses direction immediately without going all the way to the end of
the disk
 Versions of SCAN and C-SCAN that follow this pattern are called LOOK and C-
LOOK, because they look for a request before continuing to move in a given
direction.
31
Disk Scheduling
 LOOK Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67
Head starts at 53, the disk arm is moving toward 0.
32
0 14 37 53 65 67 98 122 124 183
199
1
6
2
5
1
3
1
2
4
2 5
9
2
3
Disk Scheduling
 C-LOOK Disk Scheduling
Queue = 98, 183, 37, 122, 14, 124, 65, 67
Head starts at 53, the disk arm is moving toward 199.
33
0 14 37 53 65 67 98 122 124 183
199
1
2
2
3
1
2
4
2
5
9
169
23
Disk Scheduling
 How to select a disk scheduling algorithm?
 With any scheduling algorithm, the performance depends heavily on the
number and types of requests.
 Requests for disk service can be greatly influenced by the file-allocation
method.
 A program reading a contiguously allocated file will generate several requests that
are close together on the disk, resulting in limited head movement.
 A linked or indexed file in contrast may include blocks that are widely scattered on
the disk resulting in greater head movement.
 The location of directories and index blocks is also important.
 Because of these complexities, the disk-scheduling algorithm should be
written as a separate module of the operating system, so that it can be
replaced with a different algorithm if necessary.
34
Disk Scheduling
 Disk Access Time
𝐷𝑖𝑠𝑘 𝐴𝑐𝑐𝑒𝑠𝑠 𝑇𝑖𝑚𝑒 = 𝑆𝑒𝑒𝑘 𝑇𝑖𝑚𝑒 + 𝑅𝑜𝑡𝑎𝑡𝑖𝑜𝑛𝑎𝑙 𝐿𝑎𝑡𝑒𝑛𝑐𝑦 + 𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑇𝑖𝑚𝑒
 Disk Response Time
 Average of time spent by a request waiting to perform it’s I/O operation.
35
Disk
Queuing
Delay
Seek Time
Rotational
Latency
Transfer
Time
Disk Access
Time
Disk Response Time
Disk Scheduling Example
Suppose a disk has 201 cylinders, numbered from 0 to 200. At
some time, the disk arm is at cylinder 100, and there is a queue of
disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135
and 145. If Shortest-Seek Time First (SSTF) is being used for
scheduling the disk access, the request for cylinder 90 is serviced
after servicing ____________ number of requests.
1. 1
2. 2
3. 3
4. 4
36
Disk Scheduling Example
Suppose the following disk request sequence (track numbers) for a
disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70.
Assume that the initial position of the R/W head is on track 50. The
additional distance that will be traversed by the R/W head when the
Shortest Seek Time First (SSTF) algorithm is used compared to the
SCAN (Elevator) algorithm (assuming that SCAN algorithm moves
towards 100 when it starts execution) is _________ tracks.
1. 8
2. 9
3. 10
4. 11
37
Disk Scheduling Example
Data requests are received by a disk drive for cylinder 5, 25, 18, 3,
39, 8, 35 in that order. A seek takes 5msec per cylinder moved.
How much seek time is needed to serve these requests for a SSTF
algorithm? Assume that the arm at cylinder 20 when the last of
these request is made with none of the requests yet served.
1. 125
2. 295
3. 575
4. 750
38
Disk Scheduling Example
Consider a disk pack with the following specifications- 16 surfaces,
128 tracks per surface, 256 sectors per track and 512 bytes per
sector.
1. What is the capacity of disk pack?
2. What is the number of bits required to address the sector?
3. If the disk is rotating at 3600 RPM, what is the data transfer rate?
4. If the disk system has rotational speed of 3000 RPM, what is the
average access time with a seek time of 11.5 msec?
39
40
Disk Scheduling Example
Consider a disk pack with the following specifications- 16 surfaces,
128 tracks per surface, 256 sectors per track and 512 bytes per
sector.
1. What is the capacity of disk pack?
256 MB
2. What is the number of bits required to address the sector?
19 bits
3. If the disk is rotating at 3600 RPM, what is the data transfer rate?
120 MBps
4. If the disk system has rotational speed of 3000 RPM, what is the
average access time with a seek time of 11.5 msec?
21.5 msec
41

Contenu connexe

Tendances

Memory management ppt
Memory management pptMemory management ppt
Memory management pptManishaJha43
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationWayne Jones Jnr
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processorMazin Alwaaly
 
Coa module1
Coa module1Coa module1
Coa module1cs19club
 
Windows process-scheduling
Windows process-schedulingWindows process-scheduling
Windows process-schedulingTalha Shaikh
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System ImplementationWayne Jones Jnr
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory managementJacob Cadeliña
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)vani261
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works. Fahad Farooq
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory ManagementAkmal Cikmat
 
Computer architecture virtual memory
Computer architecture virtual memoryComputer architecture virtual memory
Computer architecture virtual memoryMazin Alwaaly
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memoryvampugani
 
Deadlocks in operating system
Deadlocks in operating systemDeadlocks in operating system
Deadlocks in operating systemSara Ali
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanIftikhar Ahmad
 

Tendances (20)

Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
 
08 Operating System Support
08  Operating  System  Support08  Operating  System  Support
08 Operating System Support
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 
Coa module1
Coa module1Coa module1
Coa module1
 
Windows process-scheduling
Windows process-schedulingWindows process-scheduling
Windows process-scheduling
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
06 External Memory
06  External  Memory06  External  Memory
06 External Memory
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory management
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
 
Computer architecture virtual memory
Computer architecture virtual memoryComputer architecture virtual memory
Computer architecture virtual memory
 
Disk structure
Disk structureDisk structure
Disk structure
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Deadlocks in operating system
Deadlocks in operating systemDeadlocks in operating system
Deadlocks in operating system
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvan
 

Similaire à Input Output Management in Operating System

Similaire à Input Output Management in Operating System (20)

Os
OsOs
Os
 
unit-4.pdf
unit-4.pdfunit-4.pdf
unit-4.pdf
 
I/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKCI/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKC
 
Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 
L21-Introduction-to-IO.ppt
L21-Introduction-to-IO.pptL21-Introduction-to-IO.ppt
L21-Introduction-to-IO.ppt
 
Unit vos - File systems
Unit vos - File systemsUnit vos - File systems
Unit vos - File systems
 
Ch12
Ch12Ch12
Ch12
 
CH10.pdf
CH10.pdfCH10.pdf
CH10.pdf
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Operation System
Operation SystemOperation System
Operation System
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 
OSCh14
OSCh14OSCh14
OSCh14
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
Operation System
Operation SystemOperation System
Operation System
 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3
 
Unit 6
Unit 6Unit 6
Unit 6
 

Plus de Rashmi Bhat

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
The Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfThe Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfRashmi Bhat
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data MiningRashmi Bhat
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesRashmi Bhat
 
Classification in Data Mining
Classification in Data MiningClassification in Data Mining
Classification in Data MiningRashmi Bhat
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse FundamentalsRashmi Bhat
 
Virtual Reality
Virtual Reality Virtual Reality
Virtual Reality Rashmi Bhat
 
Introduction To Virtual Reality
Introduction To Virtual RealityIntroduction To Virtual Reality
Introduction To Virtual RealityRashmi Bhat
 

Plus de Rashmi Bhat (14)

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
The Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfThe Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdf
 
Module 1 VR.pdf
Module 1 VR.pdfModule 1 VR.pdf
Module 1 VR.pdf
 
OLAP
OLAPOLAP
OLAP
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data Mining
 
Web mining
Web miningWeb mining
Web mining
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association Rules
 
Clustering
ClusteringClustering
Clustering
 
Classification in Data Mining
Classification in Data MiningClassification in Data Mining
Classification in Data Mining
 
ETL Process
ETL ProcessETL Process
ETL Process
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse Fundamentals
 
Virtual Reality
Virtual Reality Virtual Reality
Virtual Reality
 
Introduction To Virtual Reality
Introduction To Virtual RealityIntroduction To Virtual Reality
Introduction To Virtual Reality
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 

Dernier

Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfragupathi90
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.MdManikurRahman
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AISheetal Jain
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoninghotman30312
 
AI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfAI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfmahaffeycheryld
 
How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdftawat puangthong
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxRashidFaridChishti
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024EMMANUELLEFRANCEHELI
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfAshrafRagab14
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdfKamal Acharya
 
Multivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxMultivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxalijaker017
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemSampad Kar
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesRashidFaridChishti
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Prakhyath Rai
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfMadan Karki
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsSheetal Jain
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2T.D. Shashikala
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 

Dernier (20)

Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoning
 
AI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfAI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdf
 
How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdf
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Multivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxMultivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptx
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 

Input Output Management in Operating System

  • 2. I/O Devices  I/O devices are roughly categorized into three categories: 2 I/O Devices Human Readable Machine Readable Communicati on Suitable for communicating with computer user Suitable for communicating with electronic equipment Suitable for communicating with remote devices
  • 3. I/O Devices  There are great differences across classes of I/O devices. Key differences are:  Data Rate:  There may be differences of several orders of magnitude between the data transfers.  Application:  The use to which a device is put has an influence on the software and policies in the OS and supporting utilities.  Complexity of control:  E.g. a printer requires a relatively simple control interface while a disk is much more complex.  Unit of transfer:  Data may be transferred as a stream of bytes or characters or in a large block. 3
  • 4. I/O Devices  There are great differences across classes of I/O devices. Key differences are:  Data Representation:  Different data encoding schemes are used by different devices, including differences in character code and parity conventions.  Error conditions:  The nature of errors, the way in which they are reported, their consequences and the available range of responses differ widely from one device to another  This diversity makes it difficult to achieve a uniform and consistent approach to I/O for both OS as well as for user processes. 4
  • 5. Organization of the I/O Function  There are three approaches for performing I/O: 5 I/O Programm ed I/O Interrupt Driven I/O Direct Memory Access (DMA)
  • 6. Organization of the I/O Function  Programmed I/O  The processor issues an I/O command, on behalf of a process, to an I/O module.  The process then busy waits for the operation to be completed before proceeding.  Interrupt driven I/O  The processor issues an I/O command, on behalf of a process.  If the I/O instruction is non-blocking, the processor continues to execute instructions from the process that issued the I/O command. OR  If the I/O instruction is blocking, then the next instruction that processor executes is from OS, which will put current process in a blocked state and schedule another process. 6
  • 7. Organization of the I/O Function  Direct Memory Access (DMA)  Controls the exchange of data between main memory and an I/O module.  The processor sends a request for the transfer of a block of data to the DMA module and is interrupted only after the entire block has been transferred. 7 No Interrupts Use of Interrupts I/O-to-Memory transfer through Processor Programmed I/O Interrupt driven I/O Direct I/O-to-Memory transfer Direct Memory Access I/O Techniques
  • 8. Organization of the I/O Function  Direct Memory Access (DMA)  The DMA is capable of mimicking the processor and, of taking over control of system bus just like a processor.  It transfers data to and from memory over the system bus.  When the processor wishes to read or write a block of data, it issues a command to a DMA module 8 Data count Data register Address register Control Logic Data lines Address lines Request to DMA Acknowledgement from DMA Interrupt Read Write DMA Block Diagram
  • 9. Organization of the I/O Function  Direct Memory Access (DMA)  When the processor wishes to read or write a block of data, it issues a command to a DMA module by sending following information:  Whether a read or write is requested, using the read or write control line between the processor and the DMA module.  The address of the I/O device involved, communicated on the data line.  The starting location in memory to read from or write to, communicated on data lines and stored by the DMA module in its address register.  The number of words to be read or written, again communicated via the data lines and stored in the data count register. 9
  • 10. Organization of the I/O Function  Direct Memory Access (DMA)  The processor delegates I/O operation to the DMA module and continues with other work.  DMA module transfers the entire block of data, one word at a time, directly to or from memory, without going to a processor.  When the transfer is complete, the DMA module sends an interrupt signal to the processor. 10
  • 11. Disk Organization  Magnetic disks provide bulk of secondary storage for modern computer systems. 11
  • 12. Disk Organization  The two surfaces of a platter are covered with a magnetic material.  Information is recorded magnetically on the platters.  A read -write head flies just above each surface of every platter.  The heads are attached to a disk arm that moves all the heads as a unit.  The surface of a platter is logically divided into circular tracks, which are subdivided into sectors.  The set of tracks that are at one arm position makes up a cylinder.  There may be thousands of concentric cylinders in a disk drive, and each track may contain hundreds of sectors. 12
  • 13. Disk Organization  Disk speed has two parts.  The transfer rate is the rate at which data flow between the drive and the computer.  The positioning time, sometimes called the random-access time, consists of the time necessary to move the disk arm to the desired cylinder, called the seek time and the time necessary for the desired sector to rotate to the disk head, called the rotational latency.  The disk head flies on an extremely thin cushion of air. Although the disk platters are coated with a thin protective layer, the head will sometimes damage the magnetic surface. This accident is called a head crash. 13
  • 14. Disk Organization  A disk drive is attached to a computer by a set of wires called an I/O bus.  Several kinds of buses are available  ATA (Advanced Technology Attachment  SATA (Serial ATA)  eSATA  USB (Universal Serial Bus)  FC (Fibre Channel)  The data transfers on a bus are carried out by special electronic processors called controller.  Host controller is at the computer end of the bus  Disk controller is built into each disk drive 14
  • 15. 15
  • 16. Magnetic Tape  Magnetic tape was used as an early secondary-storage medium.  Information is accessed sequentially. 16
  • 17. Magnetic Tape  It can hold large quantities of data, its access time is slow compared with that of main memory and magnetic disk.  Random access to magnetic tape is about a thousand times slower than random access to magnetic disk  Tapes are used mainly for backup, for storage of infrequently used information, and as a medium for transferring information from one system to another.  A tape is kept in a spool and is wound or rewound past a read- write head.  Tapes can store from 20GB to 200GB. 17
  • 18. Disk Scheduling  The operating system need to use the hardware efficiently.  Disk drive is expected to have fast access time and large disk bandwidth.  Seek time:  The time for the disk arm to move the heads to the cylinder containing the desired sector.  Rotational Latency:  The additional time for the disk to rotate the desired sector to the disk head.  Disk Bandwidth:  The total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer.  We can improve both the access time and the bandwidth by managing the order in which disk I/O requests are serviced. 18
  • 19. Disk Scheduling  Whenever a process needs I/O to or from the disk, it issues a system call to the operating system.  The request specifies several pieces of information:  Whether this operation is input or output  What the disk address for the transfer is  What the memory address for the transfer is  What the number of sectors to be transferred is  If the desired disk drive and controller are available, the request can be serviced immediately.  If the drive or controller is busy, any new requests for service will be placed in the queue of pending requests for that drive. 19
  • 20. Disk Scheduling  FCFS Disk Scheduling  The simplest form of disk scheduling based in first-come, first- served (FCFS) policy.  The algorithm is intrinsically fair, but it generally does not provide the fastest service.  E.g., a disk queue with requests for I/0 to blocks on cylinders in the following order 98, 183, 37, 122, 14, 124, 65, 67 suppose, currently head starts at 53 20
  • 21. Disk Scheduling  FCFS Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53 21 0 14 37 53 65 67 98 122 124 183 199
  • 22. Disk Scheduling  FCFS Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53 22 0 14 37 53 65 67 98 122 124 183 199 45 85 14 6 85 10 8 11 0 59 2 A total head movement of 640 cylinders.
  • 23. Disk Scheduling  SSTF Disk Scheduling  Shortest Seek Time First (SSTF)  It selects the request with the least seek time from the current head position.  Since seek time increases with the number of cylinders traversed by the head, SSTF chooses the pending request closest to the current head position.  Hence, the seek time of every request is calculated in advance in the queue and scheduled according to their seek time.  E.g., a disk queue with requests for I/0 to blocks on cylinders in the following order 98, 183, 37, 122, 14, 124, 65, 67 suppose, currently head starts at 53 23
  • 24. Disk Scheduling  SSTF Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53 24 0 14 37 53 65 67 98 122 124 183 199 1 2 2 3 0 2 3 8 4 2 4 2 5 9 A total head movement of 236 cylinders.
  • 25. Disk Scheduling  SSTF Disk Scheduling  Gives a substantial improvement in performance in comparison with FCS.  SSTF scheduling is essentially a form of shortest-job-first (SJF) scheduling; and like SJF scheduling, it may cause starvation of some requests.  While servicing a current request, if new request arrives which is nearest to current one, new request will be processed after this. Again if new request comes which is closer to the previous request, that incoming request will be served. If this goes on continue… the initial request which are far away will be starved.  Although the SSTF algorithm is a substantial improvement over the FCFS algorithm, it is not optimal. 25
  • 26. Disk Scheduling  SCAN Disk Scheduling  The disk arm starts at one end of the disk moves towards the other end.  It services the requests as it reaches each cylinder, until it gets to the other end of the disk.  At the other end, the direction of head movement is reversed, and servicing continues.  The head continuously scans back and forth across the disk.  The SCAN algorithm is sometimes called the elevator algorithm, since the disk arm behaves just like an elevator in a building.  First it services all the requests going up and then reversing to service requests the other way.  E.g., a disk queue with requests for I/0 to blocks on cylinders in the following order 98, 183, 37, 122, 14, 124, 65, 67 suppose, currently head starts at 53 and the disk arm is moving 26
  • 27. Disk Scheduling  SCAN Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 Head starts at 53, the disk arm is moving toward 0. 27 0 14 37 53 65 67 98 122 124 183 199 1 6 2 3 1 4 2 6 5 3 1 2 4 2 5 9 A total head movement of 236 cylinders.
  • 28. Disk Scheduling  SCAN Disk Scheduling  If a request arrives in the queue just in front of the head, it will be serviced almost immediately;  A request arriving just behind the head will have to wait until the arm moves to the end of the disk, reverses direction, and comes back.  Assuming a uniform distribution of requests for cylinders, consider the density of requests when the head reaches one end and reverses direction.  At this point, relatively few requests are immediately in front of the head, since these cylinders have recently been serviced.  The heaviest density of requests is at the other end of the disk. These requests have also waited the longest so why not go there first? 28
  • 29. Disk Scheduling  C-SCAN Disk Scheduling  Circular SCAN is a variant of SCAN scheduling designed to provide a more uniform wait time.  Like SCAN, C-SCAN moves the head from one end of the disk to the other, servicing requests along the way.  When the head reaches the other end, however, it immediately returns to the beginning of the disk without servicing any requests on the return trip.  The C-SCAN scheduling algorithm essentially treats the cylinders as a circular list that wraps around from the final cylinder to the first one. 29
  • 30. Disk Scheduling  C-SCAN Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53 30 0 14 37 53 65 67 98 122 124 183 199 2 2 2 3 1 2 4 2 5 9 1 6 199 14 23
  • 31. Disk Scheduling  LOOK and C-LOOK Disk Scheduling  Both SCAN and C-SCAN move the disk arm across the full width of the disk.  In practice, neither algorithm is often implemented this way.  More common, the arm goes only as far as the final request in each direction.  Then, it reverses direction immediately without going all the way to the end of the disk  Versions of SCAN and C-SCAN that follow this pattern are called LOOK and C- LOOK, because they look for a request before continuing to move in a given direction. 31
  • 32. Disk Scheduling  LOOK Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 Head starts at 53, the disk arm is moving toward 0. 32 0 14 37 53 65 67 98 122 124 183 199 1 6 2 5 1 3 1 2 4 2 5 9 2 3
  • 33. Disk Scheduling  C-LOOK Disk Scheduling Queue = 98, 183, 37, 122, 14, 124, 65, 67 Head starts at 53, the disk arm is moving toward 199. 33 0 14 37 53 65 67 98 122 124 183 199 1 2 2 3 1 2 4 2 5 9 169 23
  • 34. Disk Scheduling  How to select a disk scheduling algorithm?  With any scheduling algorithm, the performance depends heavily on the number and types of requests.  Requests for disk service can be greatly influenced by the file-allocation method.  A program reading a contiguously allocated file will generate several requests that are close together on the disk, resulting in limited head movement.  A linked or indexed file in contrast may include blocks that are widely scattered on the disk resulting in greater head movement.  The location of directories and index blocks is also important.  Because of these complexities, the disk-scheduling algorithm should be written as a separate module of the operating system, so that it can be replaced with a different algorithm if necessary. 34
  • 35. Disk Scheduling  Disk Access Time 𝐷𝑖𝑠𝑘 𝐴𝑐𝑐𝑒𝑠𝑠 𝑇𝑖𝑚𝑒 = 𝑆𝑒𝑒𝑘 𝑇𝑖𝑚𝑒 + 𝑅𝑜𝑡𝑎𝑡𝑖𝑜𝑛𝑎𝑙 𝐿𝑎𝑡𝑒𝑛𝑐𝑦 + 𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑇𝑖𝑚𝑒  Disk Response Time  Average of time spent by a request waiting to perform it’s I/O operation. 35 Disk Queuing Delay Seek Time Rotational Latency Transfer Time Disk Access Time Disk Response Time
  • 36. Disk Scheduling Example Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time, the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is serviced after servicing ____________ number of requests. 1. 1 2. 2 3. 3 4. 4 36
  • 37. Disk Scheduling Example Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves towards 100 when it starts execution) is _________ tracks. 1. 8 2. 9 3. 10 4. 11 37
  • 38. Disk Scheduling Example Data requests are received by a disk drive for cylinder 5, 25, 18, 3, 39, 8, 35 in that order. A seek takes 5msec per cylinder moved. How much seek time is needed to serve these requests for a SSTF algorithm? Assume that the arm at cylinder 20 when the last of these request is made with none of the requests yet served. 1. 125 2. 295 3. 575 4. 750 38
  • 39. Disk Scheduling Example Consider a disk pack with the following specifications- 16 surfaces, 128 tracks per surface, 256 sectors per track and 512 bytes per sector. 1. What is the capacity of disk pack? 2. What is the number of bits required to address the sector? 3. If the disk is rotating at 3600 RPM, what is the data transfer rate? 4. If the disk system has rotational speed of 3000 RPM, what is the average access time with a seek time of 11.5 msec? 39
  • 40. 40
  • 41. Disk Scheduling Example Consider a disk pack with the following specifications- 16 surfaces, 128 tracks per surface, 256 sectors per track and 512 bytes per sector. 1. What is the capacity of disk pack? 256 MB 2. What is the number of bits required to address the sector? 19 bits 3. If the disk is rotating at 3600 RPM, what is the data transfer rate? 120 MBps 4. If the disk system has rotational speed of 3000 RPM, what is the average access time with a seek time of 11.5 msec? 21.5 msec 41