Documente Academic
Documente Profesional
Documente Cultură
OF
AGRICULTURE & TECHNOLOGY
JKUAT SODeL
Nairobi, Kenya
E-mail: elearning@jkuat.ac.ke
JJ II
J I
J DocDoc I
Back Close
HPS 2106 COMPUTER APPLICATIONS
This presentation is intended to covered within one week.
The notes, examples and exercises should be supple-
mented with a good textbook. Most of the exercises have
solutions/answers appearing elsewhere and accessible by
JKUAT SODeL
Back Close 0
HPS 2106 COMPUTER APPLICATIONS
LESSON 2
Computer Hardware Processing and
Storage Subsystems
JKUAT SODeL
system.
3. Describe the design and functioning of the central process-
ing unit.
4. Describe the main types of primary and secondary storage.
JJ II 5. Define enterprise storage and describe the various types of
J I enterprise storage.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 1
HPS 2106 COMPUTER APPLICATIONS
2.1. A Few Definitions First
Pin - A part of a connector that extends outward to extend into
and make contact with a socket. Referred to as the male
side of a connector.
JKUAT SODeL
JJ II Plug - The part that connects with the jack, which comes from
J I a keyboard, mouse, monitor or other device. This is the
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 2
HPS 2106 COMPUTER APPLICATIONS
side associated with a cable.
sembled in. These are: the tower and the desktop style cases.
Desktop style is in the shape of a rectangular box that sits flat on
a desk. Usually the computer monitor is placed on top of it. A
2015
Back Close 3
HPS 2106 COMPUTER APPLICATIONS
Mid-tower - The standard size, recommended for most ap-
plications including standard desktop systems and some
servers.
Full-tower - The largest. Usually this is a very tall case and
JKUAT SODeL
Back Close 4
HPS 2106 COMPUTER APPLICATIONS
The Front Panel
When you look at the front of your computer, you will probably
see something a little different from the diagram to the right
below. There are a huge number of variations on the market.
JKUAT SODeL
The Buttons
The Power button is most important. If you cant find this one,
you wont get too far with your computer! This is either a push
button or a flip switch that turns on the computer. Computers
now put this on the front, but older models may have it on the
JJ II side or even the back of the computer. There is an LED light to
J I show you that the power is on.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 5
HPS 2106 COMPUTER APPLICATIONS
The Reset button is used to restart the computer quickly.
When the Reset button is pressed, called a Warm Boot, the
computer shuts down but does not stop the hard drives spin-
ning. It then immediately starts up again. This saves time since
JKUAT SODeL
if the hard drive is turned off, you must wait about 30 seconds to
be sure that it has completely stopped before turning the power
back on.
2015
Note: Restarting the hard drive too soon can damage it.
Sometimes it is necessary to do a Cold Boot, that is let the drive
stop first and let the internals cool off for a bit before restarting,
in order to clear up a computer glitch. The Turbo button is
now obsolete on nearly all computers. This button made the
JJ II computers CPU run at a higher clock rate. On earlier models
J I there were times this was not desirable. Thus a button to switch
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 6
HPS 2106 COMPUTER APPLICATIONS
the Turbo mode on and off. More recent models dont use this
feature
that is, drives for which you insert and remove the object that
contains the data. These include the two sizes of floppy drives,
2015
tape drives, CD-ROM drives, and other newer kinds like Zip
drives.
Floppy drives were the first such drive invented. CD-ROM
drives are now standard equipment on most new systems. Tape
drives are used mostly for backing up data in large quantity.
All of these drives must be connected to the power supply
JJ II
and to the motherboard. You can imagine how crowded it gets
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 7
HPS 2106 COMPUTER APPLICATIONS
inside the computer case with all of these cables running around.
Indeed you can run out of physical space and connections for the
devices that you want. Sometimes it just wont all fit!
Each drive will have a small LED light that will light up
JKUAT SODeL
Notice that only a certain number will fit in the spaces provided
in your case. There are external versions, too, that plug into the
back of the computer. These are handy if you dont have room
for another device or if you want to use the device on more than
one computer. The internal types are usually faster though.
JJ II The hard drive is not accessible from the outside of the com-
J I puter. It is completely internal. There is a LED light, however,
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 8
HPS 2106 COMPUTER APPLICATIONS
to let you know when the drive is being accessed. On most ma-
chines you can clearly hear the drive starting up and when the
head is moving around. Each drive has a different sound.
JKUAT SODeL
Back Close 9
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 10
HPS 2106 COMPUTER APPLICATIONS
A badly behaving drive can ruin the media you put in. If
you suspect something is going wrong with a drive, dont use
media with important data on it for testing. Use either a blank
or something with unimportant data until you can be confident
JKUAT SODeL
USB Drives
2015
Back Close 11
HPS 2106 COMPUTER APPLICATIONS
The Back Panel
External devices connect to the computer from the back of the
case. The diagram overleaf shows the most common connections.
But the arrangement of these is quite varied from machine to
JKUAT SODeL
Back Close 12
HPS 2106 COMPUTER APPLICATIONS
serial connectors. There are two types of serial connectors, which
are called DB9 and DB25. One type, DB9 contains 9 pins or
sockets and the other contains 25 pins or sockets. You may have
any combination of the 9 or 25 pin connectors. Also some are
JKUAT SODeL
female style connectors, and others are male. You will need to
make sure your connectors match for their given types. The
serial cables are normally used to connect a serial mouse, an
2015
Back Close 13
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
on your video card, and your speakers will plug into a connector
on your sound card. See your sound card and video card manual
for exact placement of these connectors on the card. These cards
are plugged into the motherboard and you must open your case
JJ II up to remove or add one of these cards.
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 14
HPS 2106 COMPUTER APPLICATIONS
The Power Connectors
The back panel includes two power connectors. One is to connect
your computer to the wall outlet, and the other can be used to
connect the monitor power to operate from the socket on the
JKUAT SODeL
back of the case. Usually the power connector for the monitor
is not used since many use a power strip or a surge protector to
control the power to all devices. The power cord connects the
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 15
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 16
HPS 2106 COMPUTER APPLICATIONS
If you are ever working on the inside of the case, be SURE
that this cord is disconnected, else you might find out what it
feels like to stick your finger in an electrical socket. Zap! The
keyboard and mouse connectors are both normally PS2 connec-
JKUAT SODeL
Back Close 17
HPS 2106 COMPUTER APPLICATIONS
The Fan
The fan that you can see on the back of the computer is not a
connection, but it is critical to the health of your computer. It
cools the power supply. There is at least one other fan inside
JKUAT SODeL
the computer, which keeps air flowing inside the case to remove
the heat that all this processing generates
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 18
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 19
HPS 2106 COMPUTER APPLICATIONS
If things get too hot inside the casing, the CPU will fail to
calculate accurately. You will get wrong answers, the wrong
commands will be executed, there may be unpredictable crashes
of your programs. This could be annoying or disastrous, depend-
JKUAT SODeL
ing on exactly what happens. If you have trouble only after the
computer has been on for awhile, you can put HEAT on the top
of your list of suspects. When your computer first starts up,
2015
Back Close 20
HPS 2106 COMPUTER APPLICATIONS
age from heat.
board connector and which can only fit one way some modern
keyboards also use USB connectors, See figure below. The stan-
2015
dard color coding scheme uses purple for the keyboard connector
and port, to make it easy to find the right port for each connec-
tor. Not all manufacturers use the standard scheme.
The barrel of the keyboard connector usually has a mark or
channel or a flat area to show where the top of the plug is.
That spot should match the top of the computer-side port. In
JJ II
tower cases the top is not toward the top of the case when it is
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 21
HPS 2106 COMPUTER APPLICATIONS
in use, but toward the top as it is laying open for being worked
on.
can ruin it. The damage will not be visible, but it will
definitely not be repairable.
Some cases make it a little hard to get the keyboard plugged
in firmly. When computer boots, it checks for the presence
of a keyboard and will not continue if it cant find one. If
JJ II this happens while your keyboard is plugged in, first shut
J I down the computer and unplug the keyboard, then plug
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 22
HPS 2106 COMPUTER APPLICATIONS
it up again. Try to be sure that the plug is fully seated.
Then reboot.
Keyboards can fail, especially after a session with spilled
liquids or crumbs. So keep such away from your computer
JKUAT SODeL
Back Close 23
HPS 2106 COMPUTER APPLICATIONS
2.1.3. The Universal Serial Bus
The Universal Serial Bus (USB) will soon be used for nearly all
computer peripherals. This is attributable to the fact that;
The computer chip on the main board can automatically
JKUAT SODeL
Back Close 24
HPS 2106 COMPUTER APPLICATIONS
use to connect up to 127 other USB devices. They will have
to share power and resources, of course, but many can work
at the same time. No more problems with running out of
connectors!
JKUAT SODeL
Most USB cables are 5 meters long (16.5 feet). This length
allows for the signal to get through properly. If you need
a longer cable, you can hook up several 5 m. cables and
2015
Back Close 25
HPS 2106 COMPUTER APPLICATIONS
2.1.4. Precaution with Some USB Devices
For some USB peripherals especially disks, you may need to stop
the device before unplugging. Use the menu from the Safely
Remove Hardware icon (in WinXPs notification tray). Failure
JKUAT SODeL
Serial ports come in two sizes, 9 pin and 25 pin. The computer-
side connector will be male. (Older video types use the female
9-pin type.) Often there will be one of each size showing in the
same slot on the back of the computer. Notice that the connector
has angled sides so that the plug can fit only one way. Many
JJ II older devices use a serial port, including the computer mouse,
J I Printers, external modems, Keyboards etc. A serial port sends
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 26
HPS 2106 COMPUTER APPLICATIONS
data one bit at a time.
Back Close 27
HPS 2106 COMPUTER APPLICATIONS
and require a digital video card.
The video connector seems to be easier to knock off than
the other connectors. There are screws on either side to fasten
it down. Keeping it fastened down will protect the pins in the
JKUAT SODeL
right on the monitor after youve connected it back up, you have
probably bent the pin that carries the instructions for red. It
seems to be the one bent most often.
You can straighten a pin that is out of alignment by carefully
using a small flat blade of a knife or screwdriver to move the pin
JJ II back in place. If its really kinked, take hold of the pin with
J I needle-nosed pliers and gently straighten it. Be VERY gentle.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 28
HPS 2106 COMPUTER APPLICATIONS
You dont want to get into the problem of replacing the video
plug.
Recent devices are color coded to help you match the con-
nector to the correct port.
Audio line IN is blue
JJ II
microphone is pink
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 29
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 30
HPS 2106 COMPUTER APPLICATIONS
Audio line OUT (speakers) is lime green.
Some sound cards do not have the plug-in holes colored or even
marked as to which is which. If you cant find the documentation
that came with the sound card, youll have to experiment to see
JKUAT SODeL
which one your speakers go in. Once you figure it out, mark the
holes with fingernail polish or something so you wont have the
experience of working for hours to fix your sound when the
2015
only problem is that the speakers are plugged into the wrong
hole. Some sound cards have a volume control wheel but others
rely on software volume controls. Some kinds of speakers have
volume control knobs or slides.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 31
HPS 2106 COMPUTER APPLICATIONS
2.1.9. Modem and Network Connectors
An internal modem has connectors for phone lines, both in and
out. The in line runs from the telephone wall outlet. The
out line runs from the computer to another device, usually
JKUAT SODeL
Back Close 32
HPS 2106 COMPUTER APPLICATIONS
tongue which fits into the opening and contains the connectors.
The tongue is held in place with a screw at the top. When
selecting a computer, be sure the case has an extra bay for that
future device you dont know about yet.
JKUAT SODeL
to open and remove the case cover. We now learn the precautions
we need to take while opening the case.
Back Close 33
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 34
HPS 2106 COMPUTER APPLICATIONS
can contain static electricity that may be discharged to the cir-
cuits inside your computer. A static discharge can damage or
ruin your computer. Therefore prior to doing any work inside
your computer, you should get a grounding strap. A grounding
JKUAT SODeL
Back Close 35
HPS 2106 COMPUTER APPLICATIONS
in boards. Alternatively, ground yourself by touching something
metal like the power supply or metal parts of the case. Also,
prior to opening your computer case, be sure it is turned off and
unplugged. 110 volts can cause injury or death! Also working
JKUAT SODeL
Back Close 36
HPS 2106 COMPUTER APPLICATIONS
(b) Slide the case foreword on its slots and remove it.
2. For higher quality cases :
(a) Remove one thumbscrew or one or two Phillips head
screws from the back of your case that may hold one
JKUAT SODeL
or more panels.
(b) Remove the top panel and/or one or more necessary
side panels.
2015
Once you have opened the case, lay it on its side so you can
look at the inside components. You should see some variation
of the picture overleaf. While you may not often tinker with the
insides of your computer, it is a good idea to know a little about
what it is like in there. The diagram shows a basic tower case
JJ II
arrangement.
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 37
HPS 2106 COMPUTER APPLICATIONS
2.1.14. Components Inside the case
The System Board (mother board)
The single largest component inside the case is the system board.
Also known as the motherboard, the system board is the main
JKUAT SODeL
Back Close 38
HPS 2106 COMPUTER APPLICATIONS
always the best solution, because you will need to determine if
the system board design can utilize the new features of the CPU
and if its components are optimized. In some cases, it is better
to purchase a new system board that, by design, can fully utilize
JKUAT SODeL
Back Close 39
HPS 2106 COMPUTER APPLICATIONS
integrating them is not cost effective.
Server class machines often have integrated SCSI and net-
working capabilities; entry level home PCs often have integrated
sound, but little more; and business class PCs often have inte-
JKUAT SODeL
System Buses
The system bus is a parallel collection of conductors that carry
data and control signals from one component to the other. They
serve as communication paths to connect the basic components
JJ II
of the computer. The buses are actually metallic traces on the
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 40
HPS 2106 COMPUTER APPLICATIONS
circuit board. There are three major system bus types that can
be identified based on the type of information they carry. These
include the address bus, data bus, and control bus.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 41
HPS 2106 COMPUTER APPLICATIONS
The Data Bus
The data bus is a bidirectional pathway for data flow. Bidirec-
tional means that information can flow in two directions. Data
can flow along the data bus from the CPU to memory during a
JKUAT SODeL
write operation, and data can move from the computer memory
to the CPU during a read operation. However, should two de-
vices attempt to use the bus at the same time, data errors will
2015
occur.
Any device connected to the data bus must have the capabil-
ity to temporarily put its output on hold when it is not involved
in an operation with the processor. This is also called a floating
state. The data bus size, measured in bits, represents the com-
JJ II puter word size. Generally, the larger the bus size is, the faster
J I the computer system is. Common data bus sizes are 8-bits or
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 42
HPS 2106 COMPUTER APPLICATIONS
16-bits for older systems and 32 bits and 64 bit data bus for new
systems.
The control bus carries the control and timing signals needed
to coordinate the activities of the entire computer. Control bus
2015
Back Close 43
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 44
HPS 2106 COMPUTER APPLICATIONS
Memory Read (MEMR)
Memory Write (MEMW)
Read/Write Line (R/W Line)
I/O Read (IOR)
JKUAT SODeL
Back Close 45
HPS 2106 COMPUTER APPLICATIONS
resources and operation sequencing necessary for implementa-
tion of smooth operation of the computer. Any computer must
have a processor. A processor also carries out logical, arithmetic
and control operations within a computer.
JKUAT SODeL
Back Close 46
HPS 2106 COMPUTER APPLICATIONS
processing a particular set of instructions, so a software pro-
gram written for one family of processors cant necessarily be
understood by a processor from another family. Engineers are
constantly improving the clock speed and architecture of CPUs,
JKUAT SODeL
Back Close 47
HPS 2106 COMPUTER APPLICATIONS
2.1.15. Major Functions of the Processor (CPU)
1. The CPU fetch the instructions from the memory
2. It then decodes / interprets the instructions to determine,
what action is required
JKUAT SODeL
Back Close 48
HPS 2106 COMPUTER APPLICATIONS
Processor Registers
These are small internal memory units within the processor used
to store data temporarily during execution. CPU requires inter-
nal memory to hold data There are special registers within the
JKUAT SODeL
CPU that are used by the control unit to control the opera-
tions of the CPU and hold programs which have been executed
Examples of CPU registers include:
2015
Back Close 49
HPS 2106 COMPUTER APPLICATIONS
tion to be fetched
Memory Buffer register (MBR): contains one of data to be
written to the memory
NB: Some registers are visible to programmers (programmers
JKUAT SODeL
Back Close 50
HPS 2106 COMPUTER APPLICATIONS
Control Signals determine the operation to be carried out add,
subtract, divide etc.
Back Close 51
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
Back Close 52
HPS 2106 COMPUTER APPLICATIONS
Classification of Processors
1. By manufacturer: e.g. Intel, Cyrix, Celeron, Amo, IBM
etc
2. By processor Speed: e.g. 8088 384, 486 PI, PII, PIII, PIV
JKUAT SODeL
etc
3. By technology geometry: e.g. Pin Grid Array, Single Slot
2015
processor etc
Expansion Slots
Expansion slots are receptacles on the computer motherboard
that accept printed circuit boards. Expansion slots are also
known as sockets. All computers have expansion slots that allow
JJ II additional devices to be added. Devices include video cards, I/O
J I cards, sound cards et cetera There are several types of expan-
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 53
HPS 2106 COMPUTER APPLICATIONS
sion slots on a motherboard. The number and type of expansion
slots in the computer determines the possibilities of future ex-
pansion. The most common expansion slots include the ISA,
the PCI, and the AGP.
JKUAT SODeL
Back Close 54
HPS 2106 COMPUTER APPLICATIONS
PC market.
Back Close 55
HPS 2106 COMPUTER APPLICATIONS
Accelerated Graphics Port (AGP)
The Accelerated Graphics Port (AGP) was developed by Intel.
AGP is a dedicated high-speed bus that is used to support the
high demands of graphical software. This slot is reserved for
JKUAT SODeL
another device. Slightly shorter than the white PCI slot, the
AGP slot is usually a different color and is located about an
inch beyond the PCI slot. AGP 2.0 currently defines an interface
supporting 1x and 2x speeds at 3.3V, and 1x, 2x, and 4x speeds
at 1.5V signaling. AGP 3.0 is the latest specification defining the
JJ II new signaling scheme for 4x and 8x speeds at .8V signaling levels.
J I AGP 3.0 delivers over 2.1 GB/s of bandwidth to support graphic
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 56
HPS 2106 COMPUTER APPLICATIONS
intensive applications, including digital photos and video.
Back Close 57
HPS 2106 COMPUTER APPLICATIONS
it or the card. In many cases you can place a flat book
like a phone book under the computer case to block the
flexing enough for you to get the card inserted.
2. The bottom edge of a peripheral card may have a gap or
JKUAT SODeL
Back Close 58
HPS 2106 COMPUTER APPLICATIONS
Connecting things backwards inside a computer is sometimes
possible, even though good design would shape the parts so that
theyll only fit one way. But just because its possible, doesnt
mean its not damaging to the devices connected. So be careful.
JKUAT SODeL
There are also some pins which can be joined together with a
jumper. This is a little piece that slides over two pins at the same
time. Placing a jumper over pins closes the circuit, changing the
path of the electricity. Different combinations of open and closed
jumpers are used depending on whether you have just one hard
JJ II drive or more than one. You need the manual for the hard drive
J I to know for sure how to set the jumpers.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 59
HPS 2106 COMPUTER APPLICATIONS
Keep all manuals until you get rid of that piece of hardware.
If you trade or sell it, be kind and send the documents, too. It
can be hard to get replacements
Between the hard, floppy, and CD-ROM drive bays you will see
some thin flat grey cables going to the floppy and hard drive con-
2015
Back Close 60
HPS 2106 COMPUTER APPLICATIONS
drives and most CD-ROMs pin 1 is on the side closest to the
power supply connector.
into the flavor that the computer can digest. While all power
supplies look pretty much alike, they are not all alike in what
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 61
HPS 2106 COMPUTER APPLICATIONS
The Power supply and Power Cables
Notice the sets of colored wires coming out of the power supply.
These are the power cables. There should be Cables running
between the power supply are colored black, red, and yellow.
JKUAT SODeL
with about 12 wires going between the power supply and the
motherboard.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 62
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
The wires are colored black, red, yellow, orange, and there is
one that is blue. The primary rating on the power supply that
JJ II you should be concerned about is wattage. Most are standard
J I in the range from 230 through 300 watts. 250 watts is the rec-
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 63
HPS 2106 COMPUTER APPLICATIONS
ommend wattage for most standard systems today. If you are
buying a high powered system with a microprocessor that uses
a lot of power such as an AMD Athlon, you will need to buy a
case that has a power supply capable providing 300 watts.
JKUAT SODeL
see whats inside. Click on the parts in the diagram and youll
be moved to a description. Use the Return to Top arrows to get
back to the diagram for another choice.
Back Close 64
HPS 2106 COMPUTER APPLICATIONS
execution or future use there are 2 main categories of memory:
Primary memory: It is internal fast and volatile memory
that holds data and instructions. It is usually accessible
by the CPU. It is also known as internal memory or pri-
JKUAT SODeL
Back Close 65
HPS 2106 COMPUTER APPLICATIONS
DVDs, etc
Memory in computer system is arranged in a hierarchy and there
is the general characteristic for this memory as one move from
the top to the bottom of the memory hierarchy
JKUAT SODeL
Primary Memory
Primary memory holds data that is immediately needed by the
2015
Back Close 66
HPS 2106 COMPUTER APPLICATIONS
closes, it is taken back to the secondary memory.
Each memory consists of a number of memory location units
which are available for the storage of data and instructions. This
storage of data is referred to as the bit cells. Each memory loca-
JKUAT SODeL
a bit cell is referred to as word length. Each cell has a fixed num-
ber of bits that can be stored in it. The number of words that
can be stored in a memory is equivalent to addressable memory.
The memory address begins with a (0) zero, to N-1, where
N is the number of words that can be stored in a memory. The
JJ II program instruction or data can be referred through use of these
J I addresses
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 67
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
Figure 2.1: The Computer Memory (Storage Hierarchy)
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 68
HPS 2106 COMPUTER APPLICATIONS
Back Close 69
HPS 2106 COMPUTER APPLICATIONS
access of the memory: This means that the data in any part of
the memory can be accessed and used in the same amount of
time. RAM is divided into 2 categories:
1. DRAM
JKUAT SODeL
2. SRAM
DRAM stores information inform of a charge. These charges
need constant supply of power in order to continue holding the
2015
data.
SRAM stores the bit of information within a flip flop tech-
nology and illustrating this, the content is stable as long as the
power is available e.g. DIMMS
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 70
HPS 2106 COMPUTER APPLICATIONS
Read Only Memory ROM
Provides permanent or semi permanent storage of data. The
content can be READ but cannot be REWRITTEN during the
normal computer operation. The application of this is perma-
JKUAT SODeL
Back Close 71
HPS 2106 COMPUTER APPLICATIONS
3. Erasable programming ROM
4. Electrical programming ROM
5. Flash Electrical Programming ROM
6. Cache memory
JKUAT SODeL
Cache Memory
It is a high speed memory used to hold programs and data cur-
2015
Back Close 72
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
the CPU and the main memory, hence improving speedy oper-
ation of the CPU. It achieves this by restricting the number of
references to the main memory by the CPU. Normally the cache
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 73
HPS 2106 COMPUTER APPLICATIONS
Virtual Memory
This refers to a situation where the secondary memory (hard
disk) is regarded as an extension of the main memory which is
used as a swap are for programs temporarily removed from the
JKUAT SODeL
CPU and must be returned back to the CPU for execution. The
secondary memory is used as temporary main memory. This is
because the main memory can not hold all the programs / data.
2015
Back Close 74
HPS 2106 COMPUTER APPLICATIONS
It is basically used to supplement the main memory because
they are large in size and are non-volatile.
Example of secondary storage devices includes hard disk drive
and tape drives which are capable of two-way communication
JKUAT SODeL
Back Close 75
HPS 2106 COMPUTER APPLICATIONS
Disadvantages Secondary Storage
Are slow in terms of access to computers
Back Close 76
HPS 2106 COMPUTER APPLICATIONS
2. Magnetic disks
3. Optical disks
Magnetic Tapes
JKUAT SODeL
Back Close 77
HPS 2106 COMPUTER APPLICATIONS
In terms of length, it can be 300, 600, 1200, 2400, and
3600 feet
Back Close 78
HPS 2106 COMPUTER APPLICATIONS
It has a limited lifespan 2yrs i.e. cant be used to store
historical data
Requires storage in special environment e.g. Away from
sunlight
JKUAT SODeL
Back Close 79
HPS 2106 COMPUTER APPLICATIONS
capable of being electrically altered. This means some type of
electrical signal can alter the magnetic polarization of various
areas of the plates. The state of these polarized areas can also
be sensed. Each platter can hold large amounts of data. There
JKUAT SODeL
The figure below shows a device that has four disks (or
platters). The white rings in each platter indicate a specific
track. The white rings compose a cylinder Each platter has
data stored on it in a specific pattern for read and write access.
The data is organized into tracks which are rings around the
JJ II platter. The distance the head moves into the platter will de-
J I termine which track is read. A sector is a section of data in the
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 80
HPS 2106 COMPUTER APPLICATIONS
cylinder. Different hard drives have different numbers of sectors,
tracks, and platters. The total storage space on the hard drive
is traditionally equal to: Sector size times sectors/track times
tracks/cylinder times the number of cylinders. With more mod-
JKUAT SODeL
Back Close 81
HPS 2106 COMPUTER APPLICATIONS
A head to read and write data (The heads fly over the
surface of a disk supported by a few molecules of air)
An actuator to move the heads over the disks
Each disk is segmented radially into tracks. Tracks are
JKUAT SODeL
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 82
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 83
HPS 2106 COMPUTER APPLICATIONS
JKUAT SODeL
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 84
HPS 2106 COMPUTER APPLICATIONS
Data Storage inside the Disk
A magnetic disk stores the on and off bits of binary data as
microscopic magnetized needles on the surface of the disk. This
data can be recorded and erased any number of times. When
JKUAT SODeL
Back Close 85
HPS 2106 COMPUTER APPLICATIONS
SECTOR 3 SECTOR2 SECTOR4. The slower the seek, the
further the sectors must be skewed or separated.
Areal density defines how tightly information is packed
together on a medium. Increasing capacity per platter results in
JKUAT SODeL
fewer parts, lower power consumption, less heat, and less noise.
Increasing areal density increases performance because the head
reads bits quickly as more pass under the head in the same
2015
Back Close 86
HPS 2106 COMPUTER APPLICATIONS
extended the reliability of a SMART disk by testing all sectors
of the disk during periods of inactivity.
Partial response maximum likelihood (PRML) is a
digital signaling technique that makes it possible for the read
JKUAT SODeL
head to get an imperfect reading from the drive surface and de-
termine what the data represents. This technique allows data
to be packed more closely, and a little interference from adja-
2015
Back Close 87
HPS 2106 COMPUTER APPLICATIONS
as the head can fly closer to the surface. Glass disks are also
more stable at higher speeds.
Hard disks: seriously primitive but amazingly reliable and
accurate. Using one is like tossing a coin and hoping you get a
JKUAT SODeL
Back Close 88
HPS 2106 COMPUTER APPLICATIONS
the head up. Imagine this flying head trying to magnetize a part
of the disk, or read the magnetic information already stored on
the disk. It has to pack a few million ones and zeros into a few
millimeters of disk. It has to do it with 100% accuracy. Its
JKUAT SODeL
like trying to drop a tennis ball into a bucket from a jet fighter
doing 1000 km/h at 10,000 feet. Then you have to circle the
fighter and pluck the ball from the bucket 600 times without
2015
Back Close 89
HPS 2106 COMPUTER APPLICATIONS
it is that my hard disk works as well as it does. Most of you
probably didnt even need to know it was important that you
shouldnt think about it. What is important is to back up your
data so when the magic of the hard disk inevitably stumbles,
JKUAT SODeL
you are not surprised. It will fail. At some time, it will fail. It
has to. You just need to be prepared when it does: and give
thanks that it lasted as long as it did.
2015
Back Close 90
HPS 2106 COMPUTER APPLICATIONS
troller:
1. EIDE: IDE (Integrated Drive Electronics) has been re-
placed with EIDE (Enhanced IDE). The original IDE sup-
ported only hard disks (not CD-ROMs or tapes). Also,
JKUAT SODeL
Back Close 91
HPS 2106 COMPUTER APPLICATIONS
a SCSI controller. SCSI uses a separate bus hooked to the
system bus using a host adapter. It is a more expensive
system than IDE, but is better built and has a great deal of
flexibility. If you are considering running a server or high
JKUAT SODeL
Back Close 92
HPS 2106 COMPUTER APPLICATIONS
can manage 5 to 320 MBps maximum data transfer speed, and
supports up to 15 maximum devices per SCSI controller by daisy
chaining them.
Back Close 93
HPS 2106 COMPUTER APPLICATIONS
Other controller types are:
ST506 has a maximum transfer speed of 1 MBps and sup-
ports a maximum of two disks.
ESDI has a maximum transfer speed of 3 MBps and also
JKUAT SODeL
Back Close 94
HPS 2106 COMPUTER APPLICATIONS
Data goes into disk buffer
through 20 Gb.
2. Reliability - The other performance factor that is worth
considering is reliability. This is expressed as mean time
between failure (MTBF) The higher the number, the bet-
ter. Look for this specification on the manufacturers spec-
JJ II ification sheets for each product.
J I 3. Speed - The data output of a hard drive is primary lim-
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
Back Close 95
HPS 2106 COMPUTER APPLICATIONS
ited by the amount of time it takes for the electromag-
netic head to reach the data at specific locations on the
drive. The primary factor of limitation is hard drive rota-
tion speed. Common speeds today are 5400 RPM (revolu-
JKUAT SODeL
Back Close 96
HPS 2106 COMPUTER APPLICATIONS
Latency is the time required for the intended sector on a
track to come under the read/write head. Average latency is de-
termined by rotational speed. A shorter latency is better for the
performance. Latency occurs more often than seeks, so latency
JKUAT SODeL
Back Close 97
HPS 2106 COMPUTER APPLICATIONS
5400 rpm disks have a 5.6 ms latency
7200 rpm disks have a 4.17 ms latency
10,000 rpm disks have a 2.99 ms latency
15,000 rpm disks have a 2.00 ms latency
JKUAT SODeL
Back Close 98
HPS 2106 COMPUTER APPLICATIONS
A USB device can be connected or disconnected at any time
without having to shut down or reboot the computer.
A USB device can send data at 12 Mbps for devices like
scanners and printers or at 1.5 Mbps for keyboards and joysticks.
JKUAT SODeL
The port allows the use of a USB HUB which you can then
use to connect up to 127 other USB devices. They will have to
share power and resources, of course, but many can work at the
2015
Back Close 99
HPS 2106 COMPUTER APPLICATIONS
Revision Questions
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation
viewable size is typically one inch (25 mm) smaller than the
tube itself.
Display resolution, the number of distinct pixels in each di-
2015
Exercise 2
2015
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation