Chapter1 Intro
Chapter1 Intro
Chapter1 Intro
INTRODUCTION TO
COMPUTER SYSTEM
• This chapter will cover the following topics:
– Computer Hardware and Information Technology
Infrastructure
• The Computer System
• How Computers Represent Data
• The CPU and Primary Storage
• Microprocessors and Processing Power
• Multiple Processors and Parallel Processing
– Storage Input, and Output Technology
• Secondary Storage Technology
• Input and Output Devices
– Categories of Computers and Computer Systems
– Computer Software
– Programming Languange
Computer Hardware and Information
Technology Infrastructure
• Components of IT infrastructure consist of
software, data, and networks – require
computer hardware for their storage or
operation.
The Computer System
• Computer system consists of (see Figure
0.1):
– central processing unit (CPU)
– primary storage
– secondary storage
– input devices
– output devices
• Communications devices.
Figure 0.1: Hardware Component
of Computer Systems
Communication Secondary
Devices Storage
- Magnetic disk
Buses
Central Primary Storage
Processing Unit
(CPU)
Processor
Memory power supply drive bays
Adapter cards
Sound card processor
Video card
Ports ports memory
Drive bays
Power supply
sound card
video card
The System Unit
• What is the motherboard?
Main circuit
board in system
unit
Contains adapter
cards, processor
chips, and
memory chips
Also called
system board
• The CPU
– manipulates raw data into more useful form
and controls the other parts of the computer
system.
• Primary storage
– temporarily stores data and program
instructions during processing.
• Secondary storage
– devices store data and programs when they
are not being used in processing.
• Input devices
– convert data and instructions into electronic
form for input into the computer.
• Output devices
– convert electronic data produced by the
computer system and display them in a form
that people can understand.
• Communication devices
– provide connections between the computer
and communications networks.
• Buses
– are circuitry paths for transmitting data and
signals among the parts of the computer
system.
How Computers Represent Data
• All symbols, pictures or words must be reduced
to a string of binary digits.
• A binary digit is called a bit and represents either
a 0 or a 1.
• These are the only digits in the binary or base 2,
number system used by computers.
• A string of eight bits used to store one number or
character in a computer system is called a byte
(see Figure 0.2).
One byte for character A 01000001
01000001 A
01001100 L
01001001 I
01000011 C
01000101 E
• To represent the numbers 0 through 9 and
the letters a through z and A through Z,
computer designers have created coding
systems consisting of several hundred
standard codes.
• In one code, for instance, the binary
number 01000001 stands for the letter A.
• Two common coding systems are Extended
Binary Coded Decimal Interchange Code
(EBCDIC) and American Standard Code for
Information Interchange (ASCII). See Table 0.1.
• EBCDIC represents every number, alphabetic
character, or special character with eight bits,
used primarily in IBM and other mainframe
computers.
• ASCII was originally designed as a seven-bit
code, but most computers use eight-bit versions.
• ASCII is used in data transmission, PCs
and some larger computers.
• The computers store a picture by creating
a grid overlay of the picture.
• Each single point in this grid, or matrix is
called a pixel (picture element) and
consists of a number of bits.
Data Representation
• How is a letter converted to binary form and back?
Step 1.
The user presses Step 2.
the capital letter An electronic signal for the
D (shift+D key) capital letter D is sent to the
on the keyboard. system unit.
Step 4. Step 3.
After processing, the binary The signal for the capital letter D
code for the capital letter D is is converted to its ASCII binary
converted to an image, and code (01000100) and is stored in
displayed on the output device. memory for processing.
The CPU and Primary Storage
• The CPU is the part of the computer
system where the manipulation of
symbols, numbers, and letters occurs, and
it controls the other parts of the computer
system.
The CPU
Processor
• What is the central processing unit (CPU)?
Interprets Processor
and carries
Control
Control Arithmetic
Arithmetic
out basic instructions Unit
Unit Logic
Logic Unit
Unit (ALU)
(ALU)
that operate a computer
Instructions
Control unit directs and Data
coordinates operations in Informatio
n
computer
Arithmetic logic unit Input Output
Devices
Data Memory Information
Devices
(ALU) performs
arithmetic, comparison,
Instructions
and logical operations Data
Also Informatio
called the processor n
Storage
Devices
Processor
• What is a machine cycle?
Four operations of the CPU comprise a machine cycle
Step 1. Fetch
Obtain program instruction
or data item from memory
Memory
Step 2.
Step 4. Store Decode
Write result to memory Translate
instruction into
Processor commands
ALU Control Unit
Step 3.
Execute
Carry out command
The CPU and Primary Storage
Central Processing Unit (CPU) Primary Storage
Data Bus
Address Bus
Control Bus
• Three kinds of busses linked between the CPU,
primary storage and the other devices in the
computer system:
– Data bus
• Pass information in bi-directional.
– Address bus
• Transmits signals for locating a given address in primary
storage, indicating where data should be placed.
– Control bus
• Transmits signal specifying whether to read or write data to
or from primary storage address, input device or output
device.
• The characteristics of the CPU and
primary storage are very important in
determining a computer’s speed and
capabilities
The Arithmetic-Logic Unit and
Control Unit
• An arithmetic logic unit (ALU) and
control unit is one of the core
components of all central processing units.
• The ALU performs the computer’s
principal logical and arithmetic operations.
• It adds, subtracts, multiples, and divides,
determining whether a number is positive,
negative, or zero.
• ALU must be able to determine when one
quantity is greater than or less than another and
when two quantities are equal.
• The control unit coordinates and controls the
other parts of the computer system.
• It reads a stored program, one instruction at a
time and directs other components of the
computer system to perform the program’s
required tasks.
Processor
• Which processor should you select?
The faster the processor, the more expensive the computer
Intel Processor Desired Clock Speed
Pentium family
3.0 GHz and up
Up to 2.4 GHz
ON OFF
appears disappears
shell
liner
• What is a floppy disk?
– High-capacity storage
– Consists of several
inflexible, circular
platters that store
items electronically
– Components enclosed in
airtight, sealed case for
protection
Magnetic Disks
•What are tracks and sectors?
Track Sector
is narrow stores up to
recording band 512 bytes
that forms full of data
circle on disk
Step 3.
When software requests a
disk access, read/write
heads determine current
Step 2. or new location of data.
Small motor spins
platters while
computer is running.
Step 4.
Head actuator positions
read/write head arms over
Step 1. correct location on platters
Circuit board controls to read or write data.
movement of head actuator
and a small motor.
Optical Disk
disc label
into evenly
sized sectors
that store
items
single track
spirals to edge
of disc
disc sectors
• WORM (write once/read memory) or CD-R
(compact disk-recordable) optical disk systems
allow users to record data only once on an
optical disk.
• New CD-RW (CD-Rewritable) technology has
been developed to allow users to create
rewritable optical disks.
• Digital-video disks (DVDs) also called digital
versatile disks are optical disks the same size as
CD-ROMs but of even higher capacity (minimum
of 4.7 gigabytes of data).
Optical Discs
• What is a CD-ROM?
Compact disc read-only memory
Cannot erase or modify contents
Typically holds 650 MB to 1 GB
Commonly used to distribute multimedia and complex software
Optical Discs
• What are CD-Rs and CD-RWs?
Must have
CD recorder
or CD-R drive
Cannot erase
disc’s contents
CD-RW (compact disc-rewritable)
— erasable disc you can write on
ce
multiple times
Must have
CD-RW software
and CD-RW drive
Optical Discs
•What is a DVD-ROM (digital versatile
disc-ROM or digital video disc-ROM)?
• What is a PC Card?
Adds capabilities to computer
Credit-card-sized device commonly
used in notebook computers
Input and Output Devices
• Input devices
– Input devices gather data and convert them into
electronic form for use by the computer.
– Keyboard
• The principal method of data entry for entering text and
numerical data into a computer
– Pointing Devices
• A computer mouse is handheld device with point-and-click
capabilities that is usually connected to the computer by a
cable.
• Touch screens allows users to enter limited amounts of data
by touching the surface of a sensitized video display monitor
with finger or a pointer.
• Source Data Automation
– Captures data in computer-readable form at the time
and place they are created.
– Optical Character Recognition (OCR) devices
translate specially designed mark, characters, and
codes into digital form.
– Magnetic ink character recognition (MICR)
technology is used primarily in check processing for
the banking industry, which the bottom of typical
check contains characters identifying the bank,
checking account, and check number that are
preprinted using a special magnetic ink.
– A MICR reader translates these characters into digital
form for the computer.
– Handwriting-recognition devices such as pen-based
tablets, notebooks, and notepad are promising new
input technologies.
– These pen-based input devices convert the motion
made by an electronic stylus pressing on a touch-
sensitive tablet screen into digital form.
– Digital scanners translate image such as pictures or
documents into digital form.
– Voice input devices convert spoken words into digital
form for processing by the computer.
– Sensors are devices collect data directly from the
environment for input into a computer system.
What Is Input?
• What is input?
Data or instructions entered into memory of computer
Input device is any hardware component that
allows users to enter data and instructions
What Is Input?
• What are the two types of input?
Data
Unprocessed text,
numbers, images,
audio, and video
Instructions
Programs
Commands
User responses
The Keyboard
• How is the keyboard
divided?
Typing area
Numeric keypad
Function keys, special
keys that issue
commands
Pointing Devices
• What is a mouse?
Pointing device that fits under palm of hand
Pointing device controls mouse buttons
wheel
movement of pointer, also button
called mouse pointer
Mechanical mouse
ball
has rubber or metal
ball on underside
mouse pad
Other Pointing Devices
• What is a trackball?
Stationary pointing device
with a ball on its top or side
To move pointer, rotate ball
with thumb, fingers, or palm
of hand
Other Pointing Devices
•What are a touchpad and a
pointing stick?
Joystick is vertical
lever mounted
on a base
Wheel is
steering-wheel-type
input device
Pedal simulates
car brakes and
accelerator
Other Pointing Devices
• What is a light pen?
Handheld input device
that can detect light
Press light pen against
screen surface and then
press button on pen
Other Pointing Devices
• What is a touch screen?
100101110101101011000
01101
• What is a scanner?
Light-sensing device that
Pen or
reads printed text and Handheld
graphics
Used for image processing,
converting paper documents Sheet-fed
Drum
Scanners and Reading Devices
•How does a flatbed
scanner work?
Step 1. Document to be scanned is
placed face down on the glass window.
Step 2. Bright light moves
underneath
scanned document.
Step 3. Image of the document is
p. 302
CRT Monitors
• What is a CRT monitor?
Contains cathode-ray
tube (CRT)
Screen coated with tiny
dots of phosphor material
Each dot consists of a red,
blue, and green phosphor
Common sizes are 15, 17,
19, 21, and 22 inches
Viewable size is diagonal
measurement of actual
viewing area
CRT Monitors
•How does video travel from the processor to a CRT
monitor?
Video card (also called a graphics card) converts digital
output from computer into analog video signal
Step 5. Electron guns
Step 1. The fire the three color signals
processor sends Step 3. The to the front of the CRT.
digital video data analog signal is
to the video card. sent through a
cable to the CRT Step 4. The
monitor. CRT monitor
separates the
analog signal
into red, green,
and blue signals.
Step 6. An image is
displayed on the screen when
the electrons hit phosphor
Step 2. The video card’s dots on the back of the screen.
digital-to-analog converter
(DAC) converts the digital
video data to an analog signal.
Printers
portrait
• What is a printer?
Output device that
produces text and
graphics on paper
Result is hard copy, or
printout
Two orientations: portrait
and landscape
landscape
Speakers and Headsets
• What is an audio output device?
Computer component that produces music, speech, or
other sounds
Speakers and headsets are common devices
Speakers and Headsets
• What is voice output?
Computer talks to you through speakers on computer
Internet telephony allows you to have conversation
over Web
Categories of Computers and
Computer Systems
• Computers are classified into two:
– A special-purpose computer
– A general-purpose computer
• Special-Purpose Computers
– Is a computer designed for a particular function,
executing the same stored set of instructions
whenever requested.
– For example
• microwave ovens
• washing machine
• medical diagnostic equipment
• General-Purpose Computers
– Is a computer that can be used for solving many
different types of problems.
– Available in many sizes and a wide range of
capabilities.
– Can be classified as follows:
• 1. Microcomputers
a. Laptop computers
b. Desktop computers
c. Workstations
• 2. Minicomputers
• 3. Mainframe computers
• 4. Supercomputers
Microcomputers
• Application Software
– Refers to programs that are developed to
solve some specific problems.
– There are two types of application software:
– application program to solve special classes of
problems
– Application programs that you can write to solve your
own problems.
– Examples of application software:
– word processing
– database programs
– spreadsheets
– graphic programs
• System Software
– Refers to programs that make the computer
usable and accessible to the developers
and programmers of applications software.
– Examples of system software:
– Operating systems
– Language translator
– Linker
– Loader
– Preprocessors
Programming Languages