chapter 6 introduction to computer (dr.alya)

Upload: jonathanhindi

Post on 05-Apr-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    1/49

    Computers:

    Tools for an Information Age

    Chapter 6

    Storage and Multimedia:The Facts and More

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    2/49

    Objectives

    List the benefits of secondary storage Identify and describe storage media

    that are available for personal

    computers Differentiate among the principal types

    of secondary storage

    Describe how data is stored on a disk

    Discuss the benefits of multimedia

    Explain how data is organized,accessed, and processed

    2

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    3/49

    Secondary Storage

    Separate from the computer itself

    Software and data stored on a

    semipermanent basis

    Unlike memory, not lost when power islost

    Benefits

    3

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    4/49

    Benefits of Secondary

    Storage Space

    Reliability

    Convenience

    Economy

    4

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    5/49

    Space

    Store a roomful of data on diskssmaller than the size of a breadbox

    Diskette contains equivalent of 500

    printed pages Optical disk can hold equivalent of 500

    books

    5

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    6/49

    Reliability

    Data in secondary storage is relativelysafe

    Secondary storage is highly reliable

    More difficult for untrained people totamper with data stored on disk

    6

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    7/49

    Convenience

    Authorized users can easily andquickly locate data stored on the

    computer

    7

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    8/49

    Economy

    Several factors create significantsavings in storage costs

    Less expensive to store data on disks

    than to buy and house filing cabinets Reliable and safe data is less expensive

    to maintain

    Greater speed and convenience in filing

    and retrieving data

    8

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    9/49

    Magnetic Disk Storage

    Data represented as magnetizedspots on surface of spinning disk

    Spots on disk converted to electrical

    impulses Primary types

    Diskettes

    Hard Disks

    9

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    10/49

    Diskettes

    Made of flexible Mylar and coated with

    iron oxide

    Has protection of rigid plastic jacket

    3 diskette holds 1.44 MB of data High-capacity variations

    Sonys HiFD holds 200 MB

    Imations SuperDisk available in 120 and 240

    MB versions

    Iomegas Zip drive available in 100, 250, and

    750 MB versions

    10

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    11/49

    Hard Disks

    Rigid platter coated with magneticoxide

    Several can be combined into a disk pack

    Disk drive - a device that allows datato be read from or written to a disk

    Disk drive for personal computers

    contained within computer housing Large computer systems may have

    several external disk drives

    11

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    12/49

    Reading/Writing Data

    Access arm moves read/write

    head over particular location

    Read/write head hovers a few

    millionths of an inch above

    platter

    If head touches platter, a head

    crash occurs and data is

    destroyed

    Data can be destroyed if headtouches miniscule foreign matter

    on surface of disk

    12

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    13/49

    Disk Packs

    Each platter has its own

    access arm with

    read/write head

    Most disk packscombine platters, access

    arms, and read/write

    head

    13

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    14/49

    Hard Disks for Personal Computers

    Sealed modules that mount in a 3

    bay

    Capacity in gigabytes

    Accessing files much faster thanaccessing files on diskettes

    Some contain removable

    cartridges Iomegas Jaz drive is very popular

    14

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    15/49

    Redundant Array of Independent Disks

    (RAID)

    A group of disks that work

    together as one

    Raid level 0 spreads data from a

    single file over several drives Called data striping

    Increases performance

    Raid level 1 duplicates data on

    several drives Called disk mirroring

    Increases fault tolerance

    15

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    16/49

    How Data Is Organized

    Track

    Sector

    Cluster

    Cylinder

    16

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    17/49

    Track

    The circular portion of the

    disk surface that passes

    under the read/write head

    Floppy diskette has 80 trackson each surface

    Hard disk may have 1,000 or

    more tracks on each surface of

    each platter

    17

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    18/49

    Sector

    Each track is divided intosectors that hold a fixednumber of bytes Typically 512 bytes per

    sector

    Zone recording assignsmore sectors to tracks inouter zones than those in

    inner zones Uses storage space more

    fully

    18

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    19/49

    Cluster

    A fixed number of adjacent sectorsthat are treated as a unit of storage

    Typically two to eight sectors, depending

    on the operating system

    19

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    20/49

    Cylinder

    The track on each surface that

    is beneath the read/write head

    at a given position of the

    read/write heads When file is larger than the

    capacity of a single track,

    operating system will store it in

    tracks within the same cylinder

    20

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    21/49

    Disk Access Speed

    Access time - the time needed toaccess data on disk

    Three factors

    Seek time

    Head switching

    Rotational delay

    Once data found, next step is datatransfer

    21

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    22/49

    Seek Time

    The time it takes the access arm toget into position over a particular track

    All access arms move as a unit

    All simultaneously in position over a set oftracks that make up a cylinder

    22

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    23/49

    Head Switching

    The activation of a particularread/write head over a particular track

    All access arms move together, but only

    one read/write head can operate at anyone time

    23

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    24/49

    Rotational Delay

    The time it takes for the desired dataon the track to rotate underneath the

    read/write head

    On average, half the time for a completerevolution of the disk

    24

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    25/49

    Data Transfer

    The process of transferring data betweenits location on the disk track and memory

    Measures of performanceAverage access time About 10 milliseconds (10 thousands of a second)

    Can be improved by disk caching

    Data transfer rate - how fast data can be

    transferred once it has been found Stated in terms of megabytes per second

    25

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    26/49

    Disk Caching

    Disk cache - a special area of memory When disk drive reads data from disk, it

    reads adjacent data and stores it in

    memory When next read instruction is issued,

    drive checks first to see if desired data is

    in disk cache

    Similar to memory caching discussed

    in Chapter 4

    26

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    27/49

    Optical Disk Storage

    Provides inexpensive and compact storagewith greater capacity

    Laser scans disk and picks up lightreflections from disk surface

    Categorized by read/write capability Read-only media - user can read from, but not

    write to disk

    Write-once, read-many (WORM) - user can write

    to disk once Magneto-optical - combines magnetic and optical

    capabilities

    27

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    28/49

    Compact Disks

    CD-ROM - drive can only read data

    from CDs

    CD-ROM stores up to 700 MB per disk

    Primary medium for software distribution

    CD-R - drive can write to disk once

    Disk can be read by CD-ROM or CD-R

    drive

    CD-RW - drive can erase and record

    over data multiple times Some compatibility problems trying to read

    CD-RW disks on CD-ROM drives

    28

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    29/49

    Digital Versatile Disk (DVD)

    Short wavelength laser can readdensely packed spots

    DVD drive can read CD-ROMs

    Capacity up to 17GBAllows for full-length movies

    Sound is better than on audio CDs

    Several versions of writable andrewritable DVDs exist

    29

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    30/49

    Multimedia

    Presents information with text,illustrations, photos, narration, music,

    animation, and film clips

    Not practical until the advent of theoptical disk

    Requirements

    Applications

    30

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    31/49

    Requirements

    CD-ROM or DVD-ROM drive

    Sound card or sound chip

    Speakers

    For high-quality sound, get good speakers

    and powered subwoofer

    Equipped to handle MPEG

    Standards for compressing video

    31

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    32/49

    Applications

    Education Go on virtual tours

    Study musical scores

    Study a foreign language

    Other

    Prepare taxes with video clips from IRS

    experts Play games

    32

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    33/49

    Magnetic Tape Storage

    Tape similar to tape used in

    music cassettes

    Categorized in terms of density

    Number of bits per inch stored ontape

    Used primarily for backup of data

    stored on disk systems

    33

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    34/49

    Backup Systems

    Imperative to have copies of important datastored away from the computer

    Disks occasionally fail

    Software installation can cause computer to

    crash

    Users make mistakes entering data

    Tape is ideal backup medium

    Can copy entire hard disk to single tape inminutes

    Backup can be scheduled when you are not

    going to use the system

    34

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    35/49

    Organizing and Accessing Stored

    Data

    Character

    Field

    Record

    File

    Database

    35

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    36/49

    Character

    A letter, digit, or special character

    36

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    37/49

    Field

    A set of related characters Describes one characteristic of a

    person, place, or thing

    For a university, a students first namewould be stored in a field

    Key field - a unique identifier for a

    record

    37

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    38/49

    Record

    A collection of related fields For the university, all of the fields for one

    student constitute one record

    38

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    39/49

    File

    A collection of related records For university, all the student records

    compose a file

    39

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    40/49

    Database

    A collection of related files stored withminimum redundancy (duplication)

    For university, student file, alumni file,

    faculty/staff file, courses file, financial file,etc. would make up a database

    Organized to make retrieving data

    easier

    40

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    41/49

    File Plan Overview

    Must devise a plan for placing data ona storage unit

    Key factors

    Whether users must access data directly(immediately)

    How data must be organized on disk

    Type of processing that will take place

    41

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    42/49

    File Organization

    Three major methods of organizingdata files in secondary storage

    Sequential

    Direct Indexed

    42

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    43/49

    Sequential File Organization

    Records are stored in order accordingto a key field

    If a particular record is desired, all prior

    records must be read first To update a record, a new sequential file

    must be created, with changed and

    unchanged records

    Tape storage uses sequential

    organization

    43

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    44/49

    Direct File Organization

    Also called random access

    Go directly to desired

    record by using a key

    Computer does not have toread all prior records

    Hashing algorithm used to

    determine address of given

    key Requires disk storage

    44

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    45/49

    Hashing Algorithm

    Applies mathematical formula to keyto determine disk address of given

    record

    Collision occurs when hashing algorithmproduces same disk address for two

    different keys

    45

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    46/49

    Indexed File Organization

    Combines elements of sequential anddirect methods

    Records stored sequentially, but file also

    contains an index Index stored sequentially, contains record

    key

    Data accessed by record key

    46

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    47/49

    Processing Stored Data

    Transactions processed to update amaster file Transactions - a business event such as a sale

    Master file - data that is updated when atransaction occurs, such as a sales file orinventory file

    Two main methods of processing data Batch processing Transaction processing

    47

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    48/49

    Batch Processing

    Transactions collected intogroups or batches Batch processed and master

    file updated when the

    computer has few users online Very efficient use of

    computer resources

    Master file current only

    immediately afterprocessing

    48

    Return

  • 7/31/2019 Chapter 6 Introduction to Computer (Dr.Alya)

    49/49

    Transaction Processing

    Processing transactions as

    they occur

    Also called real-time

    processing and online

    processing

    Terminals must be connected

    directly to the computer

    Offers immediate updatingof master file

    Return