11.07.2015 Views

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sec. 8.2 Disk Drives 269Boom(arm)Pl<strong>at</strong>tersSpindle(a)Read/WriteHeads(b)TrackFigure 8.2 (a) A typical disk drive arranged as a stack of pl<strong>at</strong>ters. (b) One trackon a disk drive pl<strong>at</strong>ter.to each head. The d<strong>at</strong>a on a single pl<strong>at</strong>ter th<strong>at</strong> are accessible to any one position ofthe head for th<strong>at</strong> pl<strong>at</strong>ter are collectively called a track, th<strong>at</strong> is, all d<strong>at</strong>a on a pl<strong>at</strong>terth<strong>at</strong> are a fixed distance from the spindle, as shown in Figure 8.2(b). The collectionof all tracks th<strong>at</strong> are a fixed distance from the spindle is called a cylinder. Thus, acylinder is all of the d<strong>at</strong>a th<strong>at</strong> can be read when the arms are in a particular position.Each track is subdivided into sectors. Between each sector there are intersectorgaps in which no d<strong>at</strong>a are stored. These gaps allow the read head to recognizethe end of a sector. Note th<strong>at</strong> each sector contains the same amount of d<strong>at</strong>a.Because the outer tracks have gre<strong>at</strong>er length, they contain fewer bits per inch th<strong>and</strong>o the inner tracks. Thus, about half of the potential storage space is wasted, becauseonly the innermost tracks are stored <strong>at</strong> the highest possible d<strong>at</strong>a density. Thisarrangement is illustr<strong>at</strong>ed by Figure 8.3a. Disk drives today actually group tracksinto “zones” such th<strong>at</strong> the tracks in the innermost zone adjust their d<strong>at</strong>a densitygoing out to maintain the same radial d<strong>at</strong>a density, then the tracks of the next zonereset the d<strong>at</strong>a density to make better use of their storage ability, <strong>and</strong> so on. Thisarrangement is shown in Figure 8.3b.In contrast to the physical layout of a hard disk, a CD-ROM consists of a singlespiral track. Bits of inform<strong>at</strong>ion along the track are equally spaced, so the inform<strong>at</strong>iondensity is the same <strong>at</strong> both the outer <strong>and</strong> inner portions of the track. To keepthe inform<strong>at</strong>ion flow <strong>at</strong> a constant r<strong>at</strong>e along the spiral, the drive must speed up ther<strong>at</strong>e of disk spin as the I/O head moves toward the center of the disk. This makesfor a more complic<strong>at</strong>ed <strong>and</strong> slower mechanism.Three separ<strong>at</strong>e steps take place when reading a particular byte or series of bytesof d<strong>at</strong>a from a hard disk. First, the I/O head moves so th<strong>at</strong> it is positioned over thetrack containing the d<strong>at</strong>a. This movement is called a seek. Second, the sectorcontaining the d<strong>at</strong>a rot<strong>at</strong>es to come under the head. When in use the disk is alwayscompromises change over time. In addition, most of the description given here for disk drives is asimplified version of the reality. But this is a useful working model to underst<strong>and</strong> wh<strong>at</strong> is going on.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!