Chapter4 DeviceManagement v1
Chapter4 DeviceManagement v1
Device Management
Learning Objectives
• Dedicated Devices
• Device assigned to one job at a time
• For entire time job is active (or until released)
• Example: tape drives, printers, and plotters
• Disadvantage
• Inefficient if device is not used 100%
• Allocated for duration of job’s execution
Types of Devices (cont'd.)
• Shared Devices
• Device assigned to several processes
• Example: direct access storage device (DASD)
• Processes share DASD simultaneously
• Requests interleaved
• Device manager supervision
• Controls interleaving
• Predetermined policies determine conflict resolution
Types of Devices (cont'd.)
• Virtual Devices
• Dedicated and shared device combination
• Dedicated devices transformed into shared devices
• Example: printer
• Converted by spooling program
• Spooling
• Speeds up slow dedicated I/O devices
• Example: universal serial bus (USB) controller
• Interface between operating system, device drivers, applications,
and devices attached via USB host
Types of Devices (cont'd.)
• Storage media
• Two groups
• Sequential access media
• Records stored sequentially
• Direct access storage devices (DASD)
• Records stored sequentially
• Records stored using direct access files
• Vast differences
• Speed and sharability
Direct Access Storage Devices
• Directly read or write to specific disk area
• Random access storage devices
• Four categories
• Magnetic disks
• Optical discs
• Flash memory
• Magneto-optical disks
• Access time variance
• Not as wide as magnetic tape
• Record location directly affects access time
Fixed-Head Magnetic Disk
Storage
• Looks like a large CD or DVD
• Covered with magnetic film
• Formatted
• Both sides (usually) in concentric circles called tracks
• Data recorded serially on each track
• Fixed read/write head positioned over data
• Advantages
• Fast (more so than movable head)
• Disadvantages
• High cost and reduced storage
Fixed-Head Magnetic Disk
Storage (cont'd.)
Movable-Head Magnetic Disk
• Storage
One read/write head floats over disk surface
• Example: computer hard drive
• Disks
• Single platter
• Part of disk pack (stack of platters)
• Disk pack platter
• Two recording surfaces
• Exception: top and bottom platters
• Surface formatted with concentric tracks
• Track number varies
• 1000+ (high-capacity disk)
Movable-Head Magnetic Disk
Storage (cont'd.)
• Disk pack platter (cont'd.)
• Track surface number
• Track zero: outermost concentric circle on each surface
• Center: contains highest-numbered track
• Arm moves over all heads in unison
• Slower: fill disk pack surface-by-surface
• Faster: fill disk pack track-by-track
• Virtual cylinder: fill track zero
• Record access system requirements
• Cylinder number, surface number, record number
Movable-Head Magnetic Disk
Storage (cont'd.)
Optical Disc Storage
• Design difference
• Magnetic disk
• Concentric tracks of sectors
• Spins at constant angular
velocity (CAV)
• Wastes storage space but
fast data retrieval
Optical Disc Storage (cont'd.)
• Design features
• Optical disc
• Single spiralling track of
same-sized sectors running
from center to disc rim
• Spins at constant linear
velocity (CLV)
• More sectors and more disc
data
Optical Disc Storage (cont'd.)
• Two important performance measures
• Sustained data-transfer rate
• Speed to read massive data amounts from disc
• Measured in megabytes per second (Mbps)
• Crucial for applications requiring sequential access
• Average access time
• Average time to move head to specific disc location
• Expressed in milliseconds (ms)
• Third feature
• Cache size (hardware)
• Buffer to transfer data blocks from disc
CD and DVD Technology
• CD
• Data recorded as zeros and ones
• Pits: indentations
• Lands: flat areas
• Reads with low-power laser
• Light strikes land and reflects to photodetector
• Pit is scattered and absorbed
• Photodetector converts light intensity into digital signal
CD and DVD Technology
(cont'd.)
• CD-Recordable technology (CD-R)
• Requires expensive disk controller
• Records data using write-once technique
• Data cannot be erased or modified
• Disk
• Contains several layers
• Gold reflective layer and dye layer
• Records with high-power laser
• Permanent marks on dye layer
• CD cannot be erased after data recorded
• Data read on standard CD drive (low-power beam)
CD and DVD Technology
(cont'd.)
• CD-Rewritable technology (CD-RW)
• Data written, changed, erased
• Uses phase change technology
• Amorphous and crystalline phase states
• Record data: beam heats up disc
• State changes from crystalline to amorphous
• Erase data: low-energy beam to heat up pits
• Loosens alloy to return to original crystalline state
• Drives read standard CD-ROM, CD-R, CD-RW discs
• Drives store large quantities of data, sound, graphics, multimedia
CD and DVD Technology
(cont'd.)
• DVD technology (Digital Versatile Disc)
• CD-ROM comparison
• Similar in design, shape, size
• Differs in data capacity
• Dual-layer, single-sided DVD holds 13 CDs
• Single-layer, single-sided DVD holds 8.6 GB (MPEG video compression)
• Differs in laser wavelength
• Uses red laser (smaller pits, tighter spiral)
• DVDs cannot be read by CD or CD-ROM drives
• DVD-R and DVD-RW provide rewritable flexibility
Blu-Ray Disc Technology
Head pointer 53
• The disk arm starts at one end of the disk, and moves toward the other
end, servicing requests until it gets to the other end of the disk, where
the head movement is reversed and servicing continues.
• SCAN algorithm Sometimes called the elevator algorithm
Device Handler Seek Strategies (cont'd.)
We illustrate scheduling algorithms with a request queue (0-
199). Assume arm move to the beginning of the queue
98, 183, 37, 122, 14, 124, 65, 67
Head pointer 53
• C-LOOK
• LOOK a version of SCAN, C-LOOK a version of C-
SCAN
• Arm only goes as far as the last request in each direction,
then reverses direction immediately, without first going
all the way to the end of the disk
Device Handler Seek Strategies
(cont'd.)
We illustrate scheduling algorithms with a request queue (0-
199).Assume arm move towards the end of the disk
98, 183, 37, 122, 14, 124, 65, 67
Head pointer 53