Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Basic Concepts in
Desktop and Portable
Computing
CHAPTER
1:
DESKTOP
AND
COMPUTER SYSTEM COMPONENTS
PORTABLE
Define a computer
Define communication
Discuss the basic operation of a computer from inputting data to producing output
Introduction to Computers
Definition of Computer
The computer is an electronic machine made with electronic devices. It accepts the raw
data through input device processes it based on the set of instructions given (called
programs) and produces the information as output on the output device. The important
feature of computers is its storage capability which can store the information and can be
retrieved as and when required.
Characteristics of Computer
Computers are popular because of following characteristics:
Speed: Computer can perform a task much faster than done manually.
Storage: Computer stores the information in its main memory and the same can
be retrieved based on the requirement.
Business Area
Business people use computers to track accounts, cash transactions inventory
management, to store client information, order history, maintaining sale transaction
records and prepare the reports.
Now a days, several organization uses computer for doing transaction online. They have
their own web sites where one can purchase an item and make payment online.
Entertainment Area
PC can be used to play audio, video and can be connected to TV, LCD Projector to have
real time home theater experience.
Most movie goers like science fiction or action movies, especially the ones that have
dazzling special-effects. Well, those graphics were mostly made by computers.
Computer gamming is another area where PC can be used as a gamming device owing to
its multimedia capabilities. The computer gaming industry is currently a huge
profit-making industry.
Education Area
Computer being known for its speed and accuracy it plays a major roll in education area.
Its storage feature enables to maintain digital library which can be retried based on
requirement.
Medicinal Area
Computerization of Hospitals helps to keep record of patients admitted, keep track of
equipment and their status.
In addition, medical practitioners use telemedicine to diagnose patients. In telemedicine, a
doctor or a specialist provide diagnosis to a patient through video conferencing system
attached to computer and connected to Internet link. This is especially useful in the case
where a patient is in remote place or it is not practically possible to move a patient.
Finance Area
The advantages due to computerization of banks are multidimensional - to the customer,
and the banks.
Customers can logon to banks website through Internet and transact with their account in
any part of the world.
Immediate responses to customer queries without the need to look at ledger-keeper as
terminals are provided to all bank employees.
Speedy information transfer enabling fast
computerized branches and controlling offices.
decisions,
because
of
interconnected
Signature retrieval facility assisted bank employees to verify transactions by sitting at their
own terminal.
Apart from the above Computers are used extensively in R&D, Telecommunications,
Transportation, Manufacturing etc.
Early Communication
The main form of communication between humans is through words. The human beings
can express their thoughts both verbally and written. And this form of communication
amongst humans is not a recent one. Humans used to communicate in this way since
ancient times.
However, in early times, people used to send messages through messengers. A messenger
can be a fellow human being or a bird, such as pigeon, which is responsible to deliver the
message at the specified address or to the specified person. However, the disadvantage of
this mechanism is that the time elapsed between when the message is send and when the
message is received is often quite long. In addition, there is a chance of the message or
sometimes even the messenger getting lost during the message delivery process.
To overcome these problems, people devised certain techniques to send messages. One of
the most widely used techniques is to use items like lanterns, flags and mirrors to send he
messages. However, this can be used only within the visibility range.
Another popular method to send messages is by using drum sounds. The pattern in which
the drum sound is produced helps other people to understand the message being
communicated. However, this is also not a perfect method. This is because a sound over
long distance often gets less clear which may result in not getting the message clearly.
In Morse code any single transmitted value can have two states, on and off. This on-off
state is represented by the numbers 0 and 1. The number, 0, represents off state meaning
no signal is send. On the other hand, the number, 1, represents on state meaning the
signal is being sent.
10011011
10011011
In the preceding figure, observe that only one bit travels at a time between the two points
X and Y.
However, the disadvantage of serial communication is that it provides a slow mean of data
communication. And with the advancement in computer development, faster means of
communication is required. Hence to fasten the communication more wires are used to
connect the components of the computer. In this way we can send multiple bits
simultaneously. This enables the data to travel faster. This type of communication is called
parallel communication.
The following diagram illustrates the parallel communication:
10011011
10011011
1
1
0
1
1
0
0
1
Operating System
It acts as an interface between Computer and peripherals and optimizes the utilization of
resources. It also acts as a mediator between User and Computer. It Converts the English
like language to machine language (0s and 1s) and fed to computer for necessary
processing. The processed data which is in the form of machine language converts back to
English like language for User understanding.
Literally it is difficult to work with the PC effectively without Operating System. Example:
Windows XP, Linux etc.
Application Software
Set of programs developed to perform a specific task.
Example: Microsoft Word- this is application software used to prepare letters with features
like formatting the data, Dictionary etc.
Control Unit
OUTPUT
Arithmetic and
Logical Unit
STORAGE
Input
This is the process of computer accepting the data or instructions through input device
namely Keyboard for the necessary processing. In this process the raw data is converted
into machine language and fed to CPU (Central Processing Unit) for necessary processing.
Processing
This is the process of performing operations, such as arithmetic and logical operations,
based on instructions. The CPU takes data and instructions from input device and
processes it. The processed data is then sent to the output or storage unit.
Processing unit consists of two parts mainly known as Control Unit and Art hermetic and
Logical Unit. The Control unit controls the flow of data from various I/O devices and
internal components. The Arithmetic and Logical Unit performs the data processing. This is
also known as Micro Processor.
Output
The processed data (Information) from CPU which is in the form of machine language will
be converted to user understandable language (like English) and then fed to output device
like monitor or Printer.
Storage
The storage unit is used to store the data or Information permanently for future retrieval.
It acts as an input, output device. It feeds the raw data stored within to the CPU and
stores processed data. Hard disk is considered to be one of the main storage device.
10
Motherboard
o
Processor
o
Hard disk
o
Heat sink and Fan is placed on the top of the processor to maintain the
temperature at pre defined level. The Speed of fan can be controlled based
on the heat generated by the processor.
RAM
o
It is the brain of the computer. Data Processing and Execution of the task
is performed in it.
Optical Drive
o
Optical drives are used to read /Write (Depends on Drive) data from the
optical media called CDROM, DVD ROMs. These Optical media can store
huge amount of data ranging from 700 MB to 4.5 GB compared to Floppy
disk capacity of 1.44 MB. Some of the advantage are data portability and
data retention.
Processing Devices
Motherboard
SMPS
o
Switch Mode Power Supply (SMPS) Converts the AC input into DC out put.
The Out put Voltages are constant irrespective of the input Voltage. The DC
Out of the SMPS will be fed to various components of Computer
Port
Connector
Add on cards are used to expand the computer functionalities. These are
attached to the PCI slots available on the motherboard. These are used
based on requirement.
11
In addition to above mentioned devices, there are two more devices that are though
attached externally are called computer components. These are keyboard and mouse.
Computer Peripherals
Below are some of the devices that are attached externally to the computer, except
keyboard and mouse, are called computer peripherals. The various computer peripheral
devices are:
Printer
o
Scanner
o
Printer is an output device used to take the print out of files. It could be a
document or a photograph. The quality of the printout depends on type of
printer we are using.
Power Supply
Scanner
Joystick
o
Microphone
o
Webcam
o
Webcam used for lower level video conferencing through internet. In this
technique the users can see live each other during the session.
Input Devices
What are Input Devices?
When you work with the computer you enter your data and instructions through some
devices to the computer. These devices are called input devices. The input devices are
necessary to convert data or instructions enter into the computer to a form which can be
12
recognized by the computer. A good input device should provide timely, accurate and
meaningful data to the main memory of the computer for processing.
Keyboard
Mouse
Scanner
Joystick
Microphone
Digital camera
Keyboard
Keyboard is the standard input device attached to all computers. The layout of keyboard is
just like the traditional typewriter of the type QWERTY. The computer keyboards consist of
rectangular or near-rectangular buttons, called "keys". The characters are engraved or
printed on the keys. A standard keyboard contains a total of 101 to 104 keys.
In most cases, each press of a key corresponds to a single written symbol. However, to
produce some special characters, requires pressing and holding several keys
simultaneously or in sequence.
In addition to standard keys, a keyboard contains some extra command keys and function
keys. These keys do not produce any symbol, but instead affect the operation of the
computer or the keyboard itself.
There are various variations of keyboard that are available in market such as multimedia
keyboard, Internet keyboard, folding keyboard and wireless keyboard.
The following figure shows a standard and a multimedia keyboard:
Mouse
Mouse is the pointing device used to move a graphical pointer on the screen. This graphical
pointer is also called cursor. Using mouse you can give commands, draw images and
perform other input tasks.
13
Physically, a mouse consists of a small case, held under one of the user's hands, with one
or more buttons. When you roll the mouse across a flat surface, the screen censors the
direction of mouse movement and the cursor on the screen follows the motion of the
mouse.
A mouse also has two or three buttons on its top surface. These buttons can be clicked or
double-clicked to perform tasks, like to select an icon on the screen or to open the selected
document.
There are several variants of mouse available in market today. One of the most popular is
optical mouse. An optical mouse doesnt have a ball. It uses a laser to sense the motion of
the mouse instead.
The following figure shows an image of an optical mouse:
Scanner
The keyboard can input only text through keys provided in it. If we want to input a picture
a keyboard cannot do that. To input a picture we need a scanner.
A scanner is an optical device that analyzes images, printed text, or handwriting and
converts it to a digital image.
The common scanner devices are:
Barcode reader
MICR Reader
MICR is widely used by banks to process large volumes of cheques and drafts. The bottom
line on all cheques and drafts has special characters printed in special font called MICR.
Cheques are put inside a MICR reader. As they enter the reading unit the cheques pass
through the magnetic field which causes the read head to recognize the character of the
cheques.
The following is an image of a MICR reader:
14
OMR Scanner
OMR technique is used when students have appeared for objective type tests and they had
to mark their answer by darkening a square or circular space by pencil. These answer
sheets are directly fed to a computer for grading where OMR is used.
The OMR scanner puts a shining beam of light on the document and detects the marked
area from unmarked ones. This is possible because a marked area reflects more light in
comparison to an unmarked area.
The following is an image of a OMR scanner:
OCR Scanner
OCR is used for direct reading of any printed character. It translates images of handwritten
or typewritten text, usually captured by a scanner, into machine-editable text. OCR is
generally used in the field of pattern recognition, artificial intelligence and machine vision.
Suppose you have a set of hand written documents. You put a document inside the
scanner of the computer. The characters in the document are compared with a site of
patterns stored inside the computer. Whichever pattern is matched is then successfully
converted
to
machine-editable text. This is called a character read. Patterns that cannot be identified
are rejected.
OCRs are more expensive than MICR, though they are better than MICR.
The following is an image of an OCR scanner:
15
Barcode Reader
Barcode reader is used to read the barcodes printed on practically every item purchased
from a department store. This helps in keep tracking of items in the store and also reduces
the instances of shoplifting.
A barcode is a machine-readable representation of information in a visual format on a
surface. This represented using dark ink on white substrate to create high and low
reflectance which is converted to 1s and 0s. Originally barcodes stored data in the widths
and spacing of printed parallel lines, but today they also come in various other patterns
such as dots, concentric circles, and text codes hidden within images.
A barcode reader consists of a light source, a lens and a photo conductor that translates
optical impulses into electrical ones.
The following figure shows a barcode reader:
Joystick
A joystick is an input device that is used to control onscreen objects or cursor by
maneuvering a small lever called stick instead of using the cursor keys or mouse.. It is
commonly used for controlling player movements in video or computer games.
16
Most joysticks are configured for two-dimensional movement. Moving the stick left or right
signals movement along the X axis, and moving it forward (up) or back (down) signals
movement along the Y axis.
There are certain joysticks that control three-directional movement also. In joysticks that
are configured for three-dimensional movement, twisting the stick left (counter-clockwise)
or right (clockwise) signals movement along the Z axis.
The following is an image of a joystick:
Microphone
A microphone is an input device used for recording audio in a computer. However, to do
this you also need a sound card installed in your computer. A sound card converts an
analog sound signal to digital form and a digital sound signal to its analog form.
You can use speech recognition software with your microphone to dictate text, navigate
programs and select commands.
The following figure shows a microphone:
Digital Camera
A digital camera is an input device used for capturing and storing still images. You can
connect a digital camera to a computer and transfer the images from the digital camera
directly to the computer. The following figure shows a digital camera:
17
18
Output Devices
Introduction to Output Devices
As similar to input devices require for inputting data, the computer displays or print the
output on devices called output devices. Some of the commonly used output devices are:
Printers
Speakers
VDUs
The most popular output device is the VDU, which is the standard output device. It is also
called the monitor. It is a piece of electrical equipment which displays images and texts as
generated by a computer without producing a permanent record.
A monitor is usually consists of either a cathode ray tube (CRT) or some form of flat panel
such as a TFT LCD display. The following is an image of a CRT monitor:
19
The monitor comprises of a display device, circuitry to generate a viewable image or text
from electronic signals sent by the computer, and an enclosure or case.
A VDU can be either monochrome or colored.
Characteristics of Monitor
The two important features that characterize a VDU are resolution and aspect ratio. The
resolution refers to the number of distinct pixels in each dimension of a monitor that can
be displayed. A pixel (short for Picture Element) is a single point in a graphic image. It
generally represents a single dot.
The aspect ratio is the ratio of the width of a graphic image to the height of the graphic
image.
In addition to the above mentioned characteristics, computer monitor exhibits certain
other characteristics which are:
Monitor size
The monitor size, also called screen size, is specified in two ways.
o
The monitor usually comes in the size of 14-inches, 15-inches, 17-inches, 19inches, etc. The 17-inch remains the most popular size, but 19-inch models are
now so inexpensive that they may soon overtake 17-inch models in unit sales. The
20-inch and larger monitors are still quite expensive, and are used primarily by
graphic artists and others who require huge displays.
Refresh rate
The refresh rate is the number of times an image is repainted or refreshed per
second. The refresh rate is expressed in hertz (Hz). This means that if a monitors
refresh rate is specified as 75 Hz, the image is refreshed 75 times in a second.
The refresh rate is dependent on the video card used. You can change the refresh
rate in the display properties. However, if you change the refresh rate that the
display or video card cannot support, the display goes blank or the image becomes
distorted. It is recommended to consult the display and video card manuals before
changing the monitor refresh rate.
20
Monitor Types
On the basis of resolution and aspect ratio, we can classify monitors broadly in different
categories shown in the following table.
Monitor
Type
Full name
Description
Display
resolution
(pixels)
Aspect
ratio
MDA
Monochrome
Display Adapter
Introduced in 1981 by
IBM.
It
was
the
original standards on
IBM PCs and IBM PC
XTs.
Supports
text-mode only.
720350 (text)
72:35
CGA
Color
Graphics
Adapter
Introduced in 1981 by
IBM, as the first color
monitor for the IBM
PC.
640200 (128k)
16:5
320200 (64k)
16:10
160200 (32k)
EGA
Enhanced
Graphics Adapter
Introduced in 1984 by
IBM for PC-AT. It
produced a display of
16 colors.
640350 (224k)
64:35
MCGA
Multicolor
Graphics Adapter
320200 (64k)
16:10
640480 (307k)
4:3
Video
Array
Introduced in 1987 by
IBM. VGA is actually a
set
of
different
resolutions,
but
is
most commonly used
to
refer
to
640
480
pixel
resolution
with
16
colors mode. VGA also
supports
256-color
mode.
640480 (307k)
4:3
640350 (224k)
64:35
320200 (64k)
16:10
720400 (text)
9:5
VGA
Graphics
SVGA
Super VGA
Introduced in 1989 by
VESA for IBM PC
compatible
personal
computers. It was an
extension to VGA.
800600 (480k)
4:3
XGA
Extended
Graphics Array
An
IBM
display
standard introduced in
1990. It supports
16-bit high color mode
and 256 color mode.
1024768
(786k)
4:3
XGA-2
added
true
color
mode
for
640 480 pixels and
1024 768 support
for high color.
640480 (307k)
21
Monitor
Type
Full name
Description
Display
resolution
(pixels)
Aspect
ratio
WXGA
Widescreen
Extended
Graphics Array
1280720
(922k)
16:9
16:10
1280800
(1024k)
1440900
(1296k)
SXGA
Super XGA
Introduced in 1990 by
IBM
as
the
most
common resolution on
17", 18" and 19"
desktop LCD monitors.
12801024
(1310k)
5:4
WXGA+
Widescreen
Extended
Graphics
Array
PLUS
1440900
(1296k)
16:10
UXGA
Ultra XGA
A de facto Truecolor
standard.
16001200
(1920k)
4:3
WUXGA
Widescreen Ultra
Extended
Graphics Array
19201200
(2304k)
16:10
QXGA
Quad Extended
Graphics Array
20481536
(3146k)
4:3
WQXGA.
Widescreen Quad
Extended
Graphics Array
25601600
(4096k)
16:10
QUXGA
Quad
Ultra
Extended
Graphics Array
32002400
(7680k)
4:3
HXGA
Hex[adecatuple]
Extended
Graphics Array
40963072
(12583k)
4:3
WHXGA
Wide
Hex[adecatuple]
Extended
Graphics Array
51203200
(16384k)
16:10
or
22
Monitor
Type
Full name
HSXGA
Description
Display
resolution
(pixels)
Aspect
ratio
Hex[adecatuple]
Super Extended
Graphics Array
51204096
(20972k)
5:4
WHSXGA
Wide
Hex[adecatuple]
Super Extended
Graphics Array
64004096
(26214k)
25:16
HUXGA
Hex[adecatuple]
Ultra
Extended
Graphics Array
64004800
(30720k)
4:3
WHUXGA
Wide
Hex[adecatuple]
Ultra
Extended
Graphics Array
76804800
(36864k)
16:10
Printers
Another widely used output device is printers. A printer produces a hard copy of a
processed text or a result. A hard copy refers to a permanent human-readable text or
graphics taken on a physical print media such as paper or transparency.
A printer is characterized by following two features:
Speed: Measured in pages per minute (ppm) or characters per second (cps).
Inkjet printer
Dye-sublimation printer
Laser printer
Plotter
23
Inkjet Printer
An inkjet printer refers to a type of printer where the printer sprays tiny droplets of ink
onto the media. These ink droplets are slightly electrically charged. The ink droplets
placement on the media is then determined by the charge of a cathode and electrode
between which the ink moves towards the media.
Inkjet printers can produce both color and black-and-white printing. They offer printing
speed of 2-4 ppm and resolution of 300-600 dpi.
Inkjet printers are inexpensive, have low operating cost and produce high-quality
printouts. Because of this inkjet printers are the most widely used consumer printers.
24
Dye-Sublimation Printer
A dye-sublimation printer refers to a type of printer where the printer uses a printing
process that utilizes heat to transfer dye to a medium such as a printer paper, plastic card
or poster paper. The process is to lay one color at a time using a ribbon that consists of
color panels.
Dye-sublimation printers are targeted primarily for printing high-quality color applications,
such as color photography; and are less well-suited for text. Therefore, they are commonly
used as dedicated consumer photo printers.
The following is an image of a dye-sublimation printer:
Laser Printer
A laser printer refers to a type of printer where the printer uses a laser beam to produce
image or text on a paper. The main components of a laser printer are drum and toner. The
light of the laser modify the electrical charge on the drum wherever it hits. The drum is
then rolled through toner, which is picked up by the charged portions of the drum. Finally,
with the help of heat and pressure particles on the toner are transferred to the paper. This
is also the way copy machines work.
25
A laser printer can print both in black-and-white and color. It can print with a speed of
4-16 ppm and the resolution of 300-1200 dpi and higher.
Laser printers are known for high quality prints, good print speed, and a low (Black and
White) cost-per-copy. However, they are quite expensive and hence are mostly used in
corporate world.
The following is an image of a laser printer:
Plotter
A plotter is a specialized graphical printer that is operated by moving a pen over the
surface of a paper. It uses mechanical, inkjet or thermal technology to create large format
images. Because of this, plotters are used for printing technical drawing or CAD application
images. A niche use of plotters is in creating tangible images for visually handicapped
people on special thermal cell paper.
The following is an image of a plotter:
26
Speaker
Speakers are used to produce audio output. The speakers work in conjunction with sound
card to produce the audio output. A sound card translates digital signals into analog signal
that drive the speakers. The computer speakers vary widely in terms of price and range.
Some of the common features that are included in most of the speakers are:
AN LED indicator
Introduction to Microprocessor
A microprocessor is an integrated circuit (IC) that contains a complete CPU on a single
chip. The CPU is often called the brain of computer. This is because in humans, it is the
brain that controls all body parts and is also responsible for processing all requests from
different body parts. Similarly, in computers it is the CPU that controls operation of all
computer components and also processes data from various computer components.
The microprocessor functions with the help of two subparts, ALU and CU. The ALU is the
circuitry that performs the arithmetic operations, such as addition, subtraction,
multiplication and division, and logical and comparison operations.
The CU is the circuitry that controls the flow of information through the processor, and
coordinates the activities of the other units within it. It is also responsible for controlling all
operations of a computer.
27
Processor Bus
The processor bus is the set of wires used to carry information to and from the processor.
The processor bus further constitutes of two parts:
Processor data bus: Specifies that part of processor bus that carries the actual
data to and fro from the processor and the computer components.
Processor address bus: Specifies that part of processor bus that carries the
information specifying where in memory the data is to be transferred to or from.
Memory Bus
The memory bus is the set of wires used to carry information to and from the main
memory of the computer. Similar to processor bus, the memory bus is also classified into
two categories:
Memory data bus: Specifies that part of memory bus that carries the actual data
transferred to and fro from the computer main memory.
Memory address bus: Specifies that part of memory bus that contains the
information about the memory locations from where the memory data is to be read
from or written to.
Transistors
Integrated Circuits
Registers
The Clock
BIU
L1 Cache
L2 Cache
28
FPU
29
Transistors
Transistors are the most basic components of microprocessors. These are small electronic
components which can have either on/off state. Although by looking at transistors, it
seems simple in design, but its development required several years of careful research.
Prior to the development of transistors, computers are constructed using slow and
unproductive vacuum tubes and mechanical switches to process information. These earlier
computers are constructed using thousands of vacuum tubes and several mechanical
switches which make their sizes huge. They are so huge that technicians actually went
inside the computer to "program" by turning on and off specific tubes!
Many materials, including most metals, allow electrical current to pass through them.
These are called conductors. Materials that do not allow electrical current to pass through
them are called insulators. However, in addition to conductors and insulators, there is
another category of materials which are called semiconductors.
The semiconductors are the materials whose conductivity lies between conductors and
insulators. The degree of conductivity of the semiconductors can be adjusted by adding
impurities in the material during production. An example of a semiconductor is the pure
form of the silicon. Silicon is the most favoured material for constructing transistors.
Integrated Circuits
In the late 1950s, a major development in transistor technology took place. A team of
engineers put two transistors on a thin slice of silicon, called silicon wafer, creating the
world's first integrated circuit (IC).
An integrated circuit (IC) is an electronic device consisting of a number of very small-sized
transistors and other circuit elements, like capacitors and resistors. An IC functions in the
same way as manual assembly of circuits constructed using separate electronic
components.
However, the advantage of IC is that it is a fraction of the size of the earlier circuits and
uses a fraction of the power. The development of ICs makes the way for the development
of modern day compact computers.
A major usage of ICs is in the designing of the microprocessor.
Registers
Registers are local storage areas within the processor that are used to store data used by
microprocessor for data manipulation. Physically, registers are rows of very small switches,
which can be set on or off.
The microprocessor uses registers to hold data while it works on a task. Any changes in
data during an operation are also stored in a register. The data stored in registers are then
sent to other components after the microprocessor completes the task that it was
performing.
The number and width of register varies from one computer to another. The width of
registers also has an impact on the computer performance. The wider the register, the
more bits the microprocessor can handle at any given time, resulting in improvement of
computer performance. As register width moved from 4 to 8 to 16 to 32 to 64 bits, the
performance of the computer also improved considerably.
30
The Clock
Timing is essential in any computer operations. Without any time management, confusion
would definitely arise. Timing allows the electronic components of the computer to
coordinate and execute all internal commands in proper order. This coordination based on
time is called synchronization.
Timing is achieved by placing a special conductor in the CPU and providing voltage pulse to
it. This special conductor is called the clock. Each voltage pulse received by the clock is
called a clock cycle. The clock generates a regular beat, similar to the ticking of your wall
clock, and all the computer operations are times to this beat.
You can draw the analogy to several violinists playing their violins in synchronization. This
means that all the violinists move their bows at the same time. Because of this
synchronization, you get to hear the music instead of some jumble of notes.
The speed of a clock is measured in terms of number of pulses generated by the clock in
one second. This is called the frequency of the clock. And the unit to measure the clock
frequency is MHz (megahertz). Most modern day microprocessor has the clock frequency
in GHz (gigahertz).
BIU
The bus interface unit (BIU) is that component of the microprocessor that communicates
with the rest of the computer. Its name comes from the fact that it deals with the
processor bus. The main function of BIU is to generate all signals that go from
microprocessor to other computer components and to respond to all signals that go to the
microprocessor.
L1 Cache
The L1 cache (level 1 cache) is a small, fast memory cache that is built-in to a
microprocessor. Because this cache is closest to the microprocessor it is also called primary
cache.
These L1 cache memories help the computer to improve its speed to access the
frequently-used data. The typical L1 cache ranges from 8 KB to 64 KB, with larger memory
capacity on the newer processors. Older processors in fact have no primary cache at all.
The L1 caches are very fast because they are integrated into the processor because of
which these memories run at the same speed as that of the processor.
L2 Cache
In addition to L1 cache, most computers have additional cache memory called L2 cache.
The L2 cache is called the secondary cache.
The L2 cache (level 2 cache) is the cache memory that is not built into the processor itself
but is a separate chip. It stores some of the recently used data that doesn't fit in the
smaller primary cache. Whenever we are referring to a cache memory, we are actually
referring to the L2 cache.
31
The integer execution unit (IEU) is that component of the microprocessor which executes
any arithmetic or logical operation performed on integer data. It is a part of the ALU.
Earlier microprocessors used to have only single IEU, and instructions are processed
sequentially. However, the new microprocessors use to have several different IEUs,
allowing more than one instruction to be executed simultaneously. This feature of the
microprocessor is called superscalability and the microprocessor that shows super
scalability are called superscalar microprocessors. The superscalability feature improves
the performance of the microprocessor. More advanced processors may have some
dedicated execution units designed only for executing certain types of instructions.
32
resulted because of misprediction. As a result, the use of BPU overall improves the
performance of the microprocessor.
Fetch: Loads the instruction to be executed into the microprocessor from computer
memory. But for modern microprocessors, the speed of microprocessor is much
faster than the computer memory. This means that the instructions cannot be
read fast enough to keep the microprocessor busy. Hence to overcome this
problem prefetching is done.
Prefetching is the process of getting the next instruction to be executed from the
memory well before it will need it. In this way, the processor will not need to wait
for the memory to answer its request. In most modern microprocessors, there is a
special component of microprocessor to do this task. It is called Prefetch unit.
In addition to prefetching, there is another component in microprocessor that
improves its performance. It is called Instruction Cache. It is a small memory area
where the copies of instructions to be executed are stored and which can be
directly accessed by the microprocessor.
Decode: Transfers the data into binary code that can be understood by the
microprocessor. There are special components in microprocessor to do this called
Decode unit.
Execute: Performs the specified arithmetic and logical function on the data.
The above operations that are performed by a microprocessor are collectively called
fetch-execute cycle or instruction cycle.
33
Lets understand how a microprocessor works with a simple example of adding two
numbers, 5 and 4, and obtaining the result. To illustrate this, we divide the operation into
number of subtasks. These subtasks are listed below:
On pressing 5
On pressing +
On pressing 4
On pressing =
34
On Pressing 5
On pressing the number 5, following steps are performed by the microprocessor:
1.
When the user presses the number key, 5 in the above example, the keystroke
causes the microprocessor's Prefetch unit to ask for what instruction need to
perform on the new data.
2.
The data, in this case the number 5, is sent through the address bus to the
computer memory and is stored in the Instruction cache. The code assigned to the
data
is
say
5 = x.
3.
The Prefetch unit then asks the Instruction Cache for a copy of the code "5 = x"
and sends it to the Decode unit for further processing.
4.
The Decode unit then translates the instruction referred by the code 5 = x into
binary format. This binary data is then send to the Control Unit with further
instruction on what to do with the data.
5.
The Control Unit on receiving the instruction store the number, 5, in the computer
memory, x.
On Pressing +
On pressing the + symbol, following steps are performed by the microprocessor:
1.
When the user presses the + symbol, microprocessor again asks its Prefetch unit
what to do with the new data.
2.
The data, in this case the symbol, +, is sent through the address bus to the
computer memory and is stored in the Instruction cache.
3.
The Prefetch unit then retrieves the + symbol from Instruction cache and sends it
to the Decode unit for further processing.
4.
The Decode unit then translates the + symbol into binary format. This binary data
is then send to the Control Unit with further instruction on what to do with the
data.
5.
The Control Unit on receiving the instruction alerts the ALU that an ADD operation
will be performed.
On Pressing 4
On pressing the number 4, following steps are performed by the microprocessor:
1.
Next, when the user presses the number, key, 4, microprocessor again asks its
Prefetch unit what to do with the new data.
2.
The data, in this case the number 4, is sent through the address bus to the
computer memory and is stored in the Instruction cache. The code assigned to the
data
is
say
4 = y.
3.
The Prefetch unit then asks the Instruction Cache for a copy of the code "4 = y"
and sends it to the Decode unit for further processing.
4.
The Decode unit then translates the instruction referred by the code 4 = y into
binary format. This binary data is then send to the Control Unit with further
instruction on what to do with the data.
5.
The Control Unit on receiving the instruction store the number, 4, in the computer
memory, y.
6.
The Control Unit then sends the value stored in memories, x and y, to the ALU.
The Control Unit next sends the actual ADD command to the ALU.
8.
9.
35
On Pressing =
On pressing the = key, following steps are performed by the microprocessor:
1.
When the user finally presses the = key, the microprocessor looks in the Prefetch
unit to determine what to do with the new data.
2.
In the Decode Unit the instruction "2=X" is translated or decoded into a string of
binary code that is sent off to the Control Unit and the Data Cache to tell them
what to do with the instruction.
3.
The data, in this case the symbol, =, is sent through the address bus to the
computer memory and is stored in the Instruction cache.
4.
The Prefetch unit then retrieves the = symbol from Instruction cache and sends it
to the Decode unit for further processing.
5.
The Decode unit translates the = symbol into binary format. This binary data is
then send to the Control Unit with further instruction on what to do with the data.
6.
The Control Unit on receiving the instruction executes a PRINT command. The
PRINT command retrieves the address where the result is stored and displays it on
the specified output device.
Though from the above steps it is clear that number of steps require by a computer to add
two numbers is much more than what a human being needs, but the result is displayed in
a second. The reason for this is because of the fast processing speed of a microprocessor.
Clock speed: Higher the clock speed, the faster will a processor executes an
instruction.
Number of transistors: More the number of transistors, the faster will be the
processing power.
Registers: Larger the size of the register, more instructions can be executed in a
single step.
External data bus: Larger the data bus size, more data can be transferred between
the processor and other components. As a result, the processor can execute
instructions on a large amount of data which in turn will reduce the number of
executions. This improves the processor performance.
Internal cache: More the cache memory capacity, faster will be the processor
speed. But cache are expensive memory, hence the best approach is to effectively
use the existing cache capacity to give better processor performance.
36
With the quick development in above areas result in development of faster and faster
processors in lesser and lesser time period.
Intel 8086
Intel 8088
Second generation
Intel 80286
Third generation
Intel 80386DX
Intel 80386SX
Intel 80486DX
Intel 80386SX
Intel 80486DX2
Intel 80486DX4
AMD 5x86
Cyrix 5x86
Intel Pentium
AMD K5
Cyrix 6x86
Intel Pentium II
AMD K6
Intel Pentium 4
AMD Duron
Intel Pentium D
Fourth generation
Fifth generation
Sixth generation
Seventh generation
Eighth generation
37
Read/Write Heads
Spindle Motor
Logic Board
Integrated Cache
The following figure shows some of the key components of a hard disk drive:
A substrate material that forms the majority of the platter and gives the platter a
structure and rigidity.
A magnetic media coating which actually holds the magnetic impulses that
represent the data.
The hard disks actually get their name from the rigidity of the platters used, as compared
to floppy disks and other media which use flexible "platters".
38
Read/Write Heads
The read/write heads of the hard disk are the interface between the magnetic physical
media on which the data is stored and the electronic components that make up the rest of
the hard disk (and the PC). The read/write heads are responsible for converting bits to
magnetic pulses and storing them on the platter when data is written on the hard disk. The
read/write head then again converts back the magnetic pulses stored on the hard disk into
bits when data is read from the hard disk.
Actuator Assembly
The read/write heads of a hard disk are responsible for reading data and writing data on
the hard disk. To perform its task effectively, the read/write head must be held in a fixed
position relative to the surface it is reading and should also be allowed to move from track
to track to allow access to the entire disk surface area. The surface on which the
read/write heads are mounted is called the actuator assembly. The actuator assembly
looks similar to a comb with its teeth inserted between the platters.
An actuator assembly is further composed of three parts: head slider, head arm and
actuator. The component of the actuator assembly on which heads are actually mounted is
called the head slider. The sliders are suspended over the surface of the disk by the means
of the head arms. The head arms are all combined together into a single structure that is
moved around the surface of the disk by the actuator. The actuator is the device used to
position the head arms to different tracks on the surface of the platter.
Spindle Motor
The spindle motor, also called the spindle shaft, is responsible for moving the platters
around that make the hard disk operational. The spindle motor provides stable, reliable
and consistent turning power to the hard disk to function it properly.
Jumper: Jumper itself is a small piece of plastic and metal that is used to connect
or remove the hardware device from the computer.
Jumper Pins: A set of pins, across two of which a jumper is placed to make a
specific connection.
A hard disk uses several different connectors and jumpers to connect it to the rest of the
system. The number and type of the connector depend on the number of factors like the
manufacturer of the drive, data interface it uses to connect to the system, and any special
feature that the drive may have. Instructions for setting common jumpers are usually
printed right on the drive. In addition, full instructions for setting of all jumpers will be in
the product's manual or on the manufacturer's web site.
The different type of connectors and jumpers used in a hard disk are:
Power Connector
LED Connector
39
Power Connector
Hard disk drives use a standard, 4-pin male connector plug to connect to the power
connectors coming from the power supply. This power connector for the hard disk provides
+5 and +12 voltage to the hard disk.
IDE/ATA or its variant hard disks have a 40-pin connector at its back.
SCSI hard disks have a 50-pin, 68-pin, or 80-pin D-shaped connector at its back.
Note: IDE, SCSI and other types of hard disks will be discussed in the section Hard Disk
Drive Types later in the chapter.
Drive Select: An IDE/ATA supports two drives to be configured on the same IDE
channel (the data pathway over which information flows in the IDE/ATA interface is
called channel). To distinguish between the drives, one is named as master and the
other is named as slave. The drive select jumper setting specifies whether the hard
disk should function as a master or a slave.
Slave Present: Some older drives require an additional jumper to tell the master
drive that there is also a slave drive on the same IDE/ATA channel. This is required
for older drives that don't support standard master/slave IDE channel.
Cable Select: Some drives use a special cable to determine whether the hard disk
is a master or a slave. When this is used a separate jumper, called cable select
jumper, needs to be enabled.
Size Restriction Jumper: Some large capacity hard disks do not function properly in
older PCs that have a BIOS program that do not support large storage capacities.
In such cases, for making the hard disk compatible a special jumper is used which
is called the size restriction jumper. This jumper setting makes the hard disk to
appear as a smaller size than they really are to the BIOS for compatibility. These
are also sometimes called capacity limitation jumpers and vary from manufacturer
to manufacturer.
SCSI Device ID: Every SCSI device is uniquely identified by the device ID. Narrow
SCSI drives have set of three jumpers that can assign the disk an ID number from
0 to 7. On the other hand, wide SCSI drives have set of four jumpers that can
assign the disk an ID number from 0 to 15. However, some systems don't use
jumpers to configure SCSI device IDs.
40
Termination Activate: The devices on the ends of the SCSI bus must terminate the
bus to function it properly. If the hard disk is at the end of the bus, setting this
jumper will cause it to terminate the bus for proper functioning. Not all systems
have this jumper.
Disable Auto Start: This jumper specifies the hard disk not to startup automatically
when the power is supplied. Instead, it instructs the hard disk to wait for a start
command over the SCSI bus. This jumper is also not present on all hard disks.
Delay Auto Start: This jumper instructs the hard disk to wait for sometime before
being started automatically, when the power is applied.
Stagger Spin: This jumper is an enhanced version of the Delay Auto Start jumper.
When this jumper is set, the hard disk wait for sometime, this is calculated by
multiplying a user-defined constant with the SCSI device ID. This jumper setting is
useful in the case when a system have many hard disks and setting this jumper
ensures no two drives on the same SCSI channel start up simultaneously.
Narrow/Wide: Some hard disks have a jumper to control whether they will function
in narrow or wide mode.
Disable Parity: Some hard disks have this jumper to turn off parity checking on the
SCSI bus. This is especially for compatibility with host adapters that don't support
the feature of parity checking.
LED Connector
The hard disks use an LED to indicate its activity. This LED also enables a user to
determine whether a system is active or not. This hard disk LED is mounted on the
computer case itself. In earlier computers a for the hard disk LED wire run to a two-pin
connector on the hard disk itself. Though this worked fine in case of single hard disk but
becomes problem in case of systems having multiple hard disks. To solve this problem, the
case LED was made to connect to the hard disk controller. This hard disk controller is
responsible for controlling any hard disk activity.
Modern computers have integrated IDE/ATA hard disk controllers built into the chipset on
the motherboard. Because of this the LED is usually connected to special pins on the
motherboard itself.
41
from the disk, and also "pre-fetch" information that is likely to be requested in the near
future.
The use of this cache greatly improves the hard disk performance by reducing the number
of accesses to the hard disk. Most modern hard disks have internal cache memory of upto
8 MB; although some high-performance SCSI drives have about 16 MB of internal cache.
Note: When someone speaks generically about a "disk cache", he or she is usually
referring to the system cache and not to the hard disk cache.
Heads
Cylinders
Write precompensation
Landing zone
Heads
The head of a hard disk drive represents the total number of sides on all the platters that
store data. For example if a hard disk drive has 8 platters, the hard disk drive can have
maximum upto 16 heads.
Some hard disk drive manufacturers use a technology called sector translation. As per this
technology a hard disk drive can have more than two heads per platter. Therefore as per
sector translation, it is possible that a hard disk drive can have 12 heads on only one
platter. However, irrespective of technology used for manufacturing hard disk drive, the
maximum number of heads a hard disk drive can contain is 16.
Cylinders
All the data on a hard disk drive is stored on concentric circles on the surface of each head.
Each concentric circle is called track. All tracks are numbered, starting from zero, starting
at the outside of the platter and increasing as you go in.
A set of all tracks of same diameter present on a head is called a cylinder. It is the number
of cylinders that is used for measuring the drive geometry and not the number of tracks.
The number of cylinders in a drive and the number of tracks on a platter in a drive are
exactly same. Both these numbers are determined by the manufacturer at the time of
manufacturing the drive. In most hard disks, the number of cylinders is set by a magnetic
pattern called a servo pattern.
The number of cylinders affects the storage capacity of the hard disk drive. The more the
number of cylinders the more the data can be stored on the hard disk. However, the
maximum number of cylinders on a hard disk is restricted by the BIOS limitations.
42
Most hard disks subdivide the tracks into small arcs called sectors. Each sector can hold
512 bytes of data. However, the number of sectors is not a measuring unit for drive
geometry; it is the number of tracks present on a sector. BIOS limitations set the number
of sectors per track at 63.
43
The following figure shows the relationship between sectors and tracks:
Write Precompensation
In the older hard disks, each sector contains the same number of tracks. However, the
sectors present on the outside of a platter are physically longer than those closer to the
center. Because of this difference in sizes of the sector make it difficult for the hard disk to
write on sectors especially on the inner sectors. As a result, the older hard disks require
some kind of adjustment while writing to the inner sectors. This adjustment is called write
precompensation. The setting in the BIOS specifies at what track number the
compensation was to begin. This value is called write precompensation value.
The write precompensation value is however not found on modern hard disks but seen on
older hard disks only.
Landing Zone
The earlier hard disks are highly prone to damage when the machine is switched off. As
soon as the computer is switched off, the platters of the hard disk stop spinning, and the
airflow that keeps the heads flying stops. This head will then land on the disk drive.
However there is a possibility that the head lands on a cylinder that already contains data.
This may result in disk damage. To avoid this situation an unused cylinder number is
specified in the BIOS settings where the heads will land when the machine is switched off.
This value is called the landing zone.
However, like write precompensation, this is also not applicable for the modern hard disks.
This is because the modern hard disks have a mechanism to automatically write the heads
on a special area on the hard disk when the computer is switched off.
44
45
IDE (ATA)
SCSI
SATA
ATA-1: It is the original IDE specification. ATA defines a standard 40-pin interface
that supports two hard disks on a single cable. However, ATA-1 was withdrawn as a
standard in 1999.
ATAPI (ATA Packet Interface): It is the first ATA standard that supported only the
hard disks. However, manufacturers soon realized that with the cost and
performance advantages IDE interface can be used for other devices also like CDROM and tape drives.
ATA-2: It is an updated specification of the original ATA standard. It has faster data
transfer rate, improved Plug-and-Play support and adds Logical Block Addressing
(LBA) scheme. LBA is the method used for specifying the location of blocks of data
stored on computer storage devices like hard disks. LBA uses an indexing scheme
where blocks are located by an index, with the first block being LBA=0, the second
LBA=1, and so on. However, ATA-2 was withdrawn as a standard in 2001.
ATA-3: It is a minor improved version of the ATA-2 standard. It has better power
management, enhanced reliability, and the inclusion of Self Monitoring Analysis
and Reporting Technology (SMART) technology. SMART allows the hard disk to
warn the operating system of any coming problems.
46
The above standards are actually theoretical specifications. The hard disks are marketed
not using the above specifications but using the following ad hoc standards:
Ultra ATA: It is an enhancement to EIDE and was proposed jointly by Quantum and
Intel. It incorporates ATA/ATAPI-4 standard, ATA/ATAPI-5 standard, ATA/ATAPI-6
standard and ATA/ATAPI-7 standard. Enhancements to Ultra ATA include faster
data transfer rate. Ultra ATA supports data transfer rate twice that of the EIDE.
Improved performance
environments.
over
IDE
and
SATA
in
multitasking,
multiuser
SCSI interfaces are available in various subtypes, which have different physical and
electrical interfaces and transfer rates. Modern SCSI hard disks are the largest, fastest
disks available, but IDE and SATA hard disks are fast reaching SCSI in terms of capacity
and speed.
Modern hard disks like SATA are quite inexpensive and give almost the same performance
as SCSI. In addition, SCSI hard disks are difficult to configure on a standard PC. Because
of the disadvantages, SCSI hard disk drives are rarely used in desktop computers.
However, sometimes spending a little amount of extra money on SCSI hard disk drive than
spending the same sum on a faster processor or a more enhanced video card to improve
the overall system performance is worth considering. This is especially true if you heavily
use multitasking using operating systems like Windows NT/2000/XP and Linux.
Higher bandwidth
Greater reliability
But SATA and PATA are incompatible with each other. This means that a SATA hard disk
drive cannot be connected using the data bus of a PATA hard disk and vice-versa. In
addition, SATA hard disks are connected on a special SATA interface on the motherboard.
47
Because of the different designs of SATA and PATA, a SATA hard disk drive cannot be
connected to a PATA hard disk drive interface on the motherboard, and same holds true for
PATA hard disk drive also.
Because of its superior performance, SATA hard disks are increasingly gaining popularity
and will eventually replace the PATA hard disks completely.
Random Access Memory (RAM): It is the type of computer memory that holds data
and instructions before being used by the processor. It is called random access
because data and instructions can be stored randomly at any location of the
memory and can also be retrieved randomly from any memory location.
Since data and instructions can be both written to and read from RAM, it is also
called read/write memory.
However, the storage of data and instructions inside a RAM is temporary. It can
hold content as long as the power is on. When the power is switched off, the
content in RAM is also lost. The memories, which loose their content on failure of
power supply, are called volatile memories. So RAM is also a volatile memory.
48
Types of RAM
When we refer to a computer memory, it usually is the RAM. The RAM itself is categorized
into different types. Some of the most popular RAMs are:
Static RAM (SRAM): The SRAM typically consists of multiple transistors, usually
ranging from four to six transistors, but does not have any capacitor. Because of
this reason, the SRAM does not need to be refreshed on a periodic basis. Memory
refresh is the process of periodically reading information from a portion of
computer memory, and immediately rewriting the read information to the same
area with no modifications.
Dynamic RAM (DRAM): The DRAM like SRAM too consists of transistors, but it has
only a pair of transistor unlike four to six transistors in SRAM. Another difference is
that, DRAM stores each bit of data in a separate capacitor within an integrated
circuit. Now a capacitor leaks charge, because of which data is stored in a DRAM
for only a tiny fraction of a second before getting lost. To overcome this problem,
the DRAM needs to be refreshed periodically. Because of periodic refreshing it get
its name as dynamic and hence called Dynamic RAM (DRAM).
The DRAM is slower than SRAM, but the advantage is that it requires less power
and is also inexpensive.
FPM DRAM: The Fast Page Mode DRAM (FPM DRAM) is slightly faster than
conventional DRAM. This is because of the fact that FPM DRAM works by
eliminating the need for a row address if data is located in the row previously
accessed. (More on memory access later in this chapter). It is sometimes called
page mode memory.
EDO DRAM: Extended data-out DRAM (EDO DRAM) is much faster version of
DRAM. Unlike conventional DRAM which can only access one block of data at a
time, EDO RAM usually start fetching the next block of memory as soon as it sends
the previous block to the processor. It is about five percent faster than FPM.
Maximum transfer rate to L2 cache is approximately 264 Mbps.
DDR SDRAM: Double data rate SDRAM (DDR SDRAM or DDR for short) is just like
SDRAM except that is has higher bandwidth, meaning greater speed. This is
achieved by transferring data on the up and down tick of a clock cycle. Maximum
transfer rate to L2 cache is approximately 1,064 Mbps (for DDR SDRAM 133 MHZ).
49
RDRAM: Rambus DRAM (also called Direct Rambus DRAM or DRDRAM or RDRAM)
is a radical departure from the previous DRAM architecture. It was designed by
Rambus and uses a special high-speed data bus called the Rambus channel to
transfer data between memory and processor. RDRAM memory chips work in
parallel to achieve a data rate of 800 MHz, or 1,600 Mbps.
Because of high speeds, RDRAM generate much more heat than other types of
chips. To help disperse the excess heat Rambus chips are fitted with a heat
spreader, which looks like a long thin wafer.
DDR2: DDR2 is the recent version of DDR SDRAM. It offers new features and
functions that enable higher clock and data rate operations. DDR2 transfers 64 bits
of data twice every clock cycle. However, a drawback of DDR2 is that it is not
compatible with the DDR SDRAM memory slots.
VRAM: Video RAM (VRAM) is a type of RAM which can be read from and written to
at the same time. This is called dual-ported memory. On the other hand DRAM is
single-ported memory, which means that the memory can be written to and read
from, but one at a time and not simultaneously.
VRAM is most commonly used on video accelerator because it outperforms the
other memory types by being dual ported.
Memory Bus: The memory bus is a bus that connects the memory controller with
the memory sockets on the computers motherboard.
Memory Speed: The memory speed (also called access speed) refers to the time
taken by a RAM to deliver a data request to the memory controller. Before SDRAM,
the memory speed was expressed only in nanoseconds (ns). Lower the
nanosecond speed, the faster is the RAM. Typical speeds were 90, 80, 70 and
60ns.
are
the
places
on
the
Starting from SDRAMs, the memory speeds are usually expressed in nanoseconds
and also in Megahertz (MHz). Rambus modules are measured in megabytes per
second (Mbps).
The memory speed is usually printed on the memory chip itself.
Memory Size: The memory size refers to the maximum amount of data that a
memory can store in it. Todays RAM has a capacity measured in gigabytes (GB).
Memory Access: The memory access refers to when memory is read or written.
Memory Access Time: The memory access time refers to the time required by the
computer memory to read data from or write data to the processor. It is usually
expressed in nanoseconds.
Memory Cell: The memory cell refers to a pair of transistor and capacitor which is
used to store a single bit of data. A DRAM is typically constituted of number of
these memory cells arranged in rows and columns in a matrix form.
Memory Latency: The memory latency refers to the delay in time between when
the processor made a data request and when the memory responds to the data
request.
50
Memory Bank: The memory bank refers to logical grouping of memory on the
motherboard, the size of which is determined by the processor. For example, a 32bit processor calls for memory banks that could provide 32-bit of data to it. A
memory bank can consist of one or more memory modules arranged in rows.
However, each row that constitutes a memory bank must be filled with identical
memory chips (same in speed and size).
Bus Cycle: The bus cycle refers to a transaction taking place between the
processor and the computer memory.
Memory Mapping
What is Memory Mapping?
For most computer users the term memory refers to a single RAM chip installed on the
computer motherboard. But this is not the case. The fact is that a computer RAM is
actually divided into several different areas (logically!). Some of these areas are used for
specialized functions like Intel microprocessors reserve a portion of RAM simply for getting
started. Similarly, operating systems like Windows require access to some other portion of
RAM for its own functioning.
From the above discussion, it is clear that different processes in CPU need access to
different area of memory. This classification of RAM into different areas and identifying
which process in CPU should be allocated to which memory area is known as memory
mapping.
The memory mapping is actually the logical layout of RAM because physically RAM is still a
single chip. In a modern day PC, a RAM is logically divided into following smaller areas:
51
The following figure shows the logical memory layout in modern day PC:
52
The first 128 KB of the UMA is called video RAM. It is reserved for use by video
adapters (A circuit board that is plugged into the motherboard of a personal
computer to give it display capabilities). All the data bits that are used to display
graphics and images onscreen are stored in this portion of RAM.
The next 128 KB is reserved for BIOS that resides in ROM chips of some adapter
cards (A circuit board plugged into a slot in the motherboard to add features or
peripherals to a system). The BIOS setting for a video adapter use the first 32 KB
of this memory area. The remaining portion of this memory area is used by the
BIOS of hard disk drive and other installed adapter cards like network adapter.
The top 128 KB of this memory area is reserved for the motherboard BIOS, out of
which the last 64 KB is reserved for system BIOS code itself. RAM in this area is
normally used to shadow the system BIOS. Because of this, RAM in this area is
called shadow RAM.
The shadow RAM is the technique used by most of the modern computers to improve their
performance. The shadow RAM rewrites the content of BIOS settings coded in ROM into a
special area of RAM called extended memory. Since accessing RAM is faster than accessing
ROM, the copying of BIOS into RAM improves the system performance.
Expanded Memory
The expanded memory was the standard created in mid-80s to address the 1 MB
limitations of DOS-based programs. During that time there are certain business programs,
like large spreadsheets in Lotus 1-2-3 (a popular spreadsheet application on the PC),
require to cross the 1 MB barrier. To overcome the problem, a new standard was created
by Lotus, Intel and Microsoft which was named as LIM EMS standard or simply EMS.
An expanded memory is usually available as add-on card (also called expansion card) that
is to be inserted on the motherboard to give additional memory to the system. Although all
the processing takes place in the conventional memory area, the expanded memory gives
the applications a memory area to store information.
The circuitry on an expanded memory board uses a 64 KB block of real memory in the
UMA which provides a window for writing data in it. This block of UMA that is used by an
expanded memory card is called the EMS Page Frame.
When the contents of a particular part of expanded memory is required by the computer, it
is stored in an EMS page, where it can be accessed by programs supporting the LIM
specification. After changing the contents in EMS page, it is moved out from EMS page and
a new one is moved in. Pages that have been moved out cannot be seen by the program
until they are moved back in. This concept of moving data to and fro from the EMS page is
called bank switching.
Because of continuous moving of data to and fro from the EMS page, EMS is inefficient as
a great deal of time is spent just shuffling memory around. Because of this inefficiency and
the advent of extended memory, the expanded memory card becomes obsolete nowadays.
Today applications that require expanded memory use an emulator, emm386.exe.
53
is the only portion of extended memory that is available to a processor running in real
mode.
MS-DOS loads a portion of its code in the HMA thereby freeing the memory space below
640 KB for other applications to use. This is the technique used to run additional
applications in MS-DOS environment.
In MS-DOS, the HMA can be accessed using Microsoft's HIMEM.SYS file and adding the line
DOS=HIGH in the CONFIG.SYS file.
54
55
As a result, the linear power supplies are more commonly found in external power supplies
than internal ones. Typical applications that have an external power supply include:
answering machines, cordless phones, video games, computer speakers, etc.
The conversion of AC to DC by a linear power supply occurs through various stages. In the
first stage, the linear power supply receives the AC voltage from the mains and its internal
transformer then converts this AC to a lower voltage which is still an AC. A transformer is
an electrical device that either raises or lowers the voltage of electricity.
In the next stage, a set of diodes converts the reduced AC voltage into a pulsating voltage.
This step is called rectification. A diode is a component that allows an electric current to
flow in one direction, but blocks its flow in the opposite direction.
In the next stage, a capacitor converts this pulsating voltage to almost DC. A capacitor is
an electric circuit element used to store charge temporarily. However, the converted DClike voltage produced in this stage still oscillates a bit. This results into not a true DC
because in a DC, electric current flows in one direction only. And here, the current
produced still changes it direction a little bit caused because of oscillation.
In the final stage, a voltage regulator integrated into the power supply acts on the
oscillating DC and converts it into a constant voltage. The output produced from this stage
is true DC voltage.
The linear power supply keeps the output voltage constant. The difference between the
output DC voltage and the minimum input voltage is known as the dropout voltage. If the
input is above the dropout voltage, the power supply turns on and the voltage drop is
converted to heat. If input is below the dropout voltage, the power supply does not act. As
a result, the DC output is relatively constant and independent of the AC input.
Flyback mode SMPS: A type of SMPS whose internal circuit is designed in such a
way that it stores voltage when its internal switch is off. It transfers voltage to the
output unit only when its internal switch gets on. As a result, the voltage is
supplied to the output unit in a periodic manner. This type of SMPS is designed for
computers having low power requirement, power requirement upto 250 W.
Forward mode SMPS: A type of SMPS whose internal circuit is designed in such a
way that it continuously transfers voltage to the output unit. This type of SMPS is
used for computers having moderate power requirement. In fact this is the most
widely used SMPS in PCs.
Push-Pull mode SMPS: A type of SMPS whose internal circuit is designed in such a
way that it produces much higher output voltage than input voltage. This type of
SMPS is used in computers that has very high power requirement.
56
The SMPS used in a PC look like a square metal box that has a large bundle of wires
emerging from one end. A label on one side of the box lists technical information about the
SMPS, including safety certifications and maximum output wattage.
The following figure shows a SMPS of a PC:
Generating required DC power: The power supply takes in AC supply from the
main and converts it into different DC voltages which are listed below:
o
+12 V: Is the power requirement of disk drives, fans and other types of
cooling devices.
Protecting the computer components: A high quality power supply with appropriate
capacity to meet your computer requirements will provide stable power to your
computer and its internal components for many years to come. This will help in
proper functioning of the computer and its components. However, if a power supply
is not of good quality or is not of appropriate capacity may cause damage to the
57
computer components. This may result in hard disk problem, software problem or
even system crashes.
Cooling the computer: The power supply inside your computer consists of fan and
heat sinks to give out the heat produced by the power supply. This also helps the
internal components of the computer to remain cool.
Generating Power Good signal: The power supply is also responsible for generating
Power Good signal. This is the signal generated by the power supply after the
completion of its internal tests and send to the motherboard to indicate that the
power is ready for use. Without receiving this signal, the motherboard will not start
up. This is because when computer first starts up it takes sometime by the
computer components to receive the required DC voltage. The Power Good signal
is also known as PowerGood, Power OK or PWR OK.
Wire color
Signal
Orange
Power Good
Red
Yellow
Blue
-12 V
Black
Ground
Black
Ground
+5 V
+12 V
58
For P9:
Pin Number
Wire Color
Signal
Black
Ground
Black
Ground
White
Red
+5 V
Red
+5 V
Red
+5 V
-5 V
The ATX, NLX, and SFX form factors all of them use a single 20-pin connector. This
connector is called ATX Style power connector. In this type of connector only the first pin
is square in shape and all other pins are circular in shape.
The following table lists the pins, the color of the wire corresponding to that pin and the
corresponding signal on the pin:
Pin Number
Wire Color
Signal
Orange
+3.3 V
Orange
+3.3 V
Black
Ground
Red
+5 V
Black
Ground
Red
+5 V
Black
Ground
Gray
Power Good
Purple
+5 V Standby
10
Yellow
+12 V
11
+3.3 V
12
Blue
-12 V
13
Black
Ground
14
Green
Power On
15
Black
Ground
16
Black
Ground
17
Black
Ground
18
White
-5 V
Wire Color
Signal
19
Red
+5 V
20
Red
+5 V
59
In addition to ATX Style power connectors, a new type of power connectors is available in
market. This new power connector is called ATX12V and is mostly used in Pentium 4 and
Core 2 Duo based computer systems. The difference between the older ATX Style power
connector and the new ATX12V power connector is the addition of 4 new pins in
ATX12V. The extra 4 pins were added to provide one extra wire for Ground, +3.3 V, +5 V,
and 12 V signals.
If you have an ATX12V power supply, which has a 24-pin main cable, you can plug it into
a motherboard with a 20-pin connector. It was designed in such a way that the 24-pin
cable fits into a 20-pin connector of the motherboard at one end. The extra 4 pins on the
cable just hang at the end of the motherboard connector. There is no problem in leaving
those 4 pins disconnected because a motherboard with a 20-pin connector doesn't need
them.
Connecting to Drives
In addition to supplying power to motherboard, the power supply is responsible for
supplying power to internal hard disk, floppy disk, CD/DVD drives and other drives. The
power supply provides power to these drives using four wire connectors that are attached
at the end of each drive. This connector comes in two forms, Molex and mini-Molex (or
mini-plug).
The Molex connector is a D-shaped, large sized connector. It is used on most internal
drives like hard disk drive, CD/DVD drive, and earlier 5.25-inches floppy disk drive.
The following table lists the pins, the color of the wire corresponding to that pin and the
corresponding signal on the pin for a Molex connector:
Pin Number
Wire Color
Signal
Yellow
+12 V
Black
+12 V Ground
Black
+5 V Ground
Red
+5 V
The mini-Molex connector is a small sized connector used for the 3.5-inches floppy disk
drives.
In most of the modern computer systems there is only one mini-Molex connector for the
floppy disk drive. This is because of the presence of only one 3.5-inch floppy disk drive in
most of the todays computer systems. However, some computer systems may come with
two mini-Molex connectors. This is for the situation if you are using two 3.5-inches floppy
disk drives or if yours first mini-Molex connector is broken.
60
The following table lists the pins, the color of the wire corresponding to that pin and the
corresponding signal on the pin for a mini-Molex connector:
Pin Number
Wire Color
Signal
Red
+5 V
Black
+5 V Ground
Black
+12 V Ground
Yellow
+12 V
One final thought. You may occasionally see mini-Molex connector with only two pins
instead of the standard four pins. These connectors do not have the pins for the +12 V and
+12 V Ground as the modern floppy drives do not require the +12 V for its functioning.
This may not cause any technical difficultly but you still must be careful.
Motherboard
Introduction to Motherboard
If processor is the brain of the computer, the Motherboard is the heart of the computer.
The Motherboard is the main circuit board inside the computer. All the components and
peripherals are attached to it. Most of the compute features like scalability, upgradeability
depends on Motherboard.
Below diagram shows how motherboard looks like:
DDR2 RAM
FDD
ATX Power
IDE
Flash BIOS
61
SATA
Front Panel
South Bridge
Intel
82801GB
North
Bridge
Intel
82945G
USB
LGA 775
Socket for
Processor
COMS
Battery
PCI Slots
Power
Connector
for CPU
PCI
Ex
Raiser
Slot
Front
Audio
KBD/
Mouse
COM1 Port
VGA O/P
USB
RJ 45
Parallel Port
5.1 Audio
Audio Chip
62
Form factor
Chipset
CPU support
Video support
Memory support
Audio support
BIOS upgradeability
Form Factor
There are two commonly known form factors AT and ATX. In AT Baby AT and in ATX Mini
ATX, Micro ATX and Flexi ATX are different variants available. They differ mainly in size,
type of power connector and switch. There are three parameters to be taken care. First the
Size of motherboard should be compatible with Cabinet. Second, the motherboard should
have suitable power socket to match the power supply. Third, the size of the Power supply
should fit in to the cabinet and have suitable power switch.
Chipset
The Chipset plays major roll in system performance and is the main set of components in
the motherboard. It determines what type of CPU, Memory and peripherals to be used with
the motherboard. One has to understand the compatibility of chipset, Processor and
Memory before selecting the Motherboard.
CPU Support
The CPU Support mainly depends on motherboard chipset and the type of socket available
on the motherboard. Each CPU differs with respect to their operating voltages, Socket
type, bus speed and the BIOS Support which are integral elements of the motherboard.
Video Support
There are two video output options from the motherboard. One is integrated on the
motherboard called onboard display and other is through AGP / PCI Xpress slot. Onboard
display has become standard for all the motherboards now a day where as AGP /PCI
Xpress slot is optional. One has to select a motherboard with AGP if he is working with
high end graphics, 3D animation, CAD/CAM etc.
63
Memory Support
Memory support in terms of capacity and front side bus (FSB) speed are another key
parameter of the motherboard. It depends on the number memory slots available and the
maximum capacity of each slot. The FSB of Memory, CPU and motherboard are linked to
each other and will contribute a lot towards system performance.
Audio Support
Onboard Audio has become a standard option on the motherboard. Even some
Motherboards have the option of 5.1 digital output. An audio amplifier or Digital home
theater system can be connected to the system to get quality audio.
BIOS Upgradeability
This feature enables the motherboard to upgrade the BIOS. Some times BIOS upgradation
is necessary owing to the compatibility issues to the new technologies. Motherboard having
FlashROM as BIOS chips with 4 MB capacity is a suitable option
Understanding BIOS
Acronym of BIOS is Basic Input Output System. It is a program (set of instructions) written
in machine level language. This program is stored in permanent semiconductor memory
called Flash ROM located on the motherboard. The BIOS Program initiated when system is
powered on, every time, and guide the processor to find the control to load operating
system from the hard disk.
It consists of a small RAM area (64 Bytes) called CMOS (Complementary Metal Oxide
Semiconductor) to store user defined settings like enabling disabling certain devices,
change the booting sequence etc.
The CMOS area being volatile memory it is powered by a Battery (3V) to keep the settings
unchanged when the system is powered off.
64
The below photograph shows the BIOS chip located on the Motherboard.
2.
3.
4.
5.
6.
7.
Chipset
Chipset An Overview
The chipset handles the data transfer between devices connected to motherboard. The
architecture of chipsets evolving time to time based on increasing user requirements to
connect different devices with increasing data transfer rate. As discussed earlier the
chipset should be compatible with processor and RAM it is also evolving with respect to the
processor and RAM.
It consists of two integrated circuits (IC) known as Northbridge and Southbridge. The
chipset is designed as two parts to categorize the data transfer between various devices.
This will maximize the performance as one part of the chipset takes care of the data
transfer in processing area where as the other part the chipset takes care of the data
transfer between peripherals.
The names of the bridges are different and they are paired to come under a collective
name of chipset. For example: the names of the bridges in Intel 945 chipset are 82945 the
Northridge and 82801 the Southbridge.
65
Northbridge
The Northbridge is also called as memory controller hub (MCH) in Intel systems whereas
AMD, VIA, SiS and other systems called as Northbridge itself. Some of the Northbridge
integrated with Video controllers are known as graphics and memory controller hub
(GMCH).
It handles the data transfer between main memory, processor, AGP port/ PCI Express and
Southbridge. As this bridge deals with faster data processing components it is known as
Fastbridge also. It interacts with Southbridge known as slowbridge to handle the data from
the slower devices like hard disk, CD-ROM drive etc.
The Northbridge plays a major role to overclock the computer as its frequency is used as a
baseline for the CPU to establish its own operating frequency.
Overclocking is a process of driving computer components to run at a higher clock rate.
This feature is mostly used to keep in pace with newer system requirements of the
outdated components. It can be done to the components like CPU, RAM, motherboard
chipsets and display cards. It can be achieved by manipulating the CPU multiplier and the
front side bus (FSB) speed until stable operating frequency is reached.
During the process of overclocking the chipset may get overheated as it operates its
different frequency and voltages. Hence the recent chipsets with overclocking feature
comes with heat sink to dissipate the heat generated by it.
Southbridge
The Southbridge is called as I/O controller hub (ICH) in Intel systems whereas AMD, VIA,
SiS and other systems called as Southbridge itself. Unlike Northbridge the Southbridge do
not interact with CPU and RAM directly, rather interacts through Northbridge.
It handles the data transfer between slower devices like ports, PCI bus, ISA bus, DMA
Controller, AC 97 or high definition audio, IDE (SATA, PATA) hard disk, floppy drive, BIOS,
Interrupt controller, RTC, USB, firewire, Ethernet, and RAID. It also supports keyboard,
mouse, serial ports and parallel port through another device called super I/O.
Laptop Computers
Laptop computers (or laptops) are type of portable computers, which usually weighs 1 8
kilograms, depending on size, materials, and other factors. Laptops have a removable,
chargeable battery pack that enables users to operate it without the need of connecting it
to main electric supply.
Laptops feature a folding LCD display and a built-in keyboard and pointing device. Apart
from batteries they can also use an external power supply for its operation. Today's laptops
have fairly large (2 GB or more) hard drives, a CD-ROM drive (or DVD drive), and a floppy
disk drive (often the latter two are interchangeable plug-ins).
66
Laptop computers have similar computing power to personal computers, but are much
lighter, smaller and portable.
The following figure shows an image of a laptop computer:
Notebook Computers
Notebook computers (also called notebooks) are even smaller than laptops and this
reduction in size becomes possible because of the advances in integrated circuit (IC)
technology. Notebooks are roughly of dimension 8.75 inches 11 inches 2.25 inches,
and designers are into further decreasing its size and power. However, the reduction in size
comes at a cost, and notebooks typically have smaller and less capable displays and
keyboards than laptops.
To overcome the shortcomings of a notebook computer, manufacturers are coming with
several specialty designs like docking ports.
Docking ports (also known as docking stations) are specialized cases into which the whole
notebook computer can be inserted. This allows the notebook to be connected to desktop
I/O devices such as full-sized keyboards, monitors, and printers.
The following figure shows an image of a notebook computer:
67
Subnotebook Computers
Subnotebook computers (also called palmtops or handhelds) are even smaller than the
notebook computers. They are just of the dimension 7 inches x 4 inches x 1 inch. Because
of such a small size, they often have limited functionality. For example, keyboards are too
small to allow touch-typing. With the decrease in the cost and size of notebooks, the
palmtops are fast vanishing from the market.
The following figure shows a palmtop:
68
Portable Motherboard
Portable computer motherboards are usually the proprietary of the portable computer
manufacturer. Because of this reason there is no standardization of motherboards in
portable computers. The only thing they have in common is that they have a very small
Form Factor as compared to desktop motherboards. The design of the motherboard largely
depends on the portable computer case.
Because of the small size of motherboard, most of the interfaces like serial port, parallel
port, USB, sound card are built into the portable computer motherboard itself or available
as a small add-on board known as the daughter board. Though having integrated
components on a single board does save space, but it comes at the cost of performance
and durability. If one of the components goes bad, the entire motherboard has to be
replaced. This simply means that repairs of portable computer motherboard are an
expensive affair.
The following figure shows a Toshiba laptop motherboard:
Portable Processor
Portable processors are not as fast as desktop processors and there size is also smaller
than their desktop counterpart. Some of the widely used processors available in market for
portables are:
Some of the other differences between portable and desktop processors are listed below:
Most portable processors are soldered directly in the Motherboard, which means
they cannot be removed. If there is some error in portable processor, the entire
Motherboard needs to be replaced.
69
Portable processors can be slowed down when they are not running to their full
capacity. The processor uses a technique called processor throttling that allows the
operating system to put the processor in active sleep mode or slow-down mode.
Portable processors run at reduced clock rate than desktop processors. This helps
them to produce less heat when running at full capacity.
Portable processors consume less power which though make them a slow
performer but it greatly helps them to save battery life.
70
this adapter in the cigarette lighter socket and power on your portable. This adapter is
most suitable for frequent travelers.
Portable Memory
Both desktops and portables use DIMMs but they differ in shape, size, and capacity.
Portables use smaller memory modules that fall into two main categories: SODIMM
(Discussed in Chapter Memory, Power Supply and Motherboard) and MicroDIMM.
Both are variants of DIMM.
MicroDIMM is the latest memory module used in portables and also the smaller of the two.
They have 144- or 172-pin configurations and supports 64-bit data bus. They have a
capacity of 1 GB. But they are more expensive than SODIMMs.
The following figure shows a MicroDIMM memory module:
71
resolutions, slower response times, and poorer image quality, they are rarely used in
todays portables.
Similar to desktop monitors, Portable monitors too are determined by the characteristics
like monitor size, refresh rate, screen resolution and aspect ratio. There are a number of
resolution standards supported by LCD technologies, such as XVGA, SXGA+, UXGA,
WUXGA, and QXGA (Discussed in the Chapter Computer peripherals).
The following figure shows a Portable LCD screen:
72
Trackball
Touchpoint
Touchpad
Touch Screen
Trackball
Trackballs were used in earlier portables. A trackball is a small ball (approximately
0.5-inches in diameter) that is inserted in the keyboard itself. You can move the ball, using
your thumb or finger, to move the onscreen cursor in the specified direction. In addition,
you can use the click button to select an item on the screen.
73
The trackballs are accurate and serviceable input device. But they are not much widely
used nowadays because of their tendency to easily gather dirt and dust which in turns
slows down the performance.
The following figure shows a Portable trackball:
Touchpoint
Touchpoint (also called trackpoint or finger mouse) was introduced by IBM in their
ThinkPad laptop series. It is a small stick with a rubber tip (approximately 0.25-inches in
diameter) located above B and below G and H on the portable keyboard. The user moves
the stick (just like the joystick) in a specific direction and the onscreen cursor moves in the
same direction. The advantage of this is that it is easy to use as the users are not required
to leave the keyboard to control the touchpoint.
74
Touchpad
Touchpad (also called trackpad) is a recent development in the input devices for portables.
It was developed to overcome the limitation of trackball. It consists of an
electromagnetically sensitive rubber pad (approximately of the dimension 1-inch x 2inches) which is sensitive to touch of a finger. You move your finger across the surface of
the pad to move the onscreen cursor in the same direction. A touchpad has two more
buttons on its left and right side for left-click and right-click functions. However, the
touchpads are sensitive to humidity so be careful with the moist fingers that may give
unpredictable results.
75
Touch Screen
Touch screen used in portables work in the same way as those that you have seen in bank
ATMs. Here the screen display several buttons, you just touch the screen location specific
to a button in order to select an item from the menu. Touching the screen button gives the
same result that you will get by double-clicking an item on the screen using your mouse.
76
The following figure shows a portable touch screen and a portable touch screen in action:
Type I: Is the original computer-card standard and works only with memory
expansion cards. These cards are 3.3 mm thick.
Type II: Supports most type of expansion devices and network cards. These cards
are 5 mm thick.
77
Type III: Is primarily targeted for portables with removable hard disk drives and is
compatible with Type I and Type II cards. These cards are 10.5 mm thick.
Type IV: Is targeted for hard disk drives that are thicker than 10.5 mm. The Type
II card is the most commonly used type of PC Card, and most systems have at
least two Type II slots or one Type III slot.
78
Summary
In this chapter, you learned:
The main form of communication between humans is through words. The human
beings can express their thoughts both verbally and written.
Earlier people used items like lanterns, flags, mirrors and drum beats to send
messages.
All information stored in a computer is in the form of binary digits called bits. A bit
can be either 0 or 1.
A computer performs four basic operations: input, storage, processing and output.
A portable computer can be defined as a computer that can be moved from one
place to another. The portable computers are also known as mobile computers.
79
Types of Software
Computer software can be broadly classified into following categories:
System software
Programming software
Application software
System Software
System software is a type of software that is responsible for controlling and monitoring
various hardware devices. It controls the operation of peripheral devices such as printer,
monitor, CD-ROM, floppy disk and hard disk. In addition, system software monitors the
activities of computer internal resources such as processor and memory.
The system software includes:
Operating system
Device driver
Service tools
Operating System
80
An operating system is system software that performs basic system-related tasks which
include controlling and allocating memory, prioritizing system requests and controlling
input and output devices. The operating system provides a platform for other system
software and application software. Some of the popular operating system are Windows,
Linux and Mac OS.
Device Driver
A device driver is system software that allows an application or an operating system to
interact with a hardware device. The device driver communicates with its associated device
by using bus. A bus is a set of wires using which data is transferred from one part of a
computer to another.
Each hardware device has its own set of device driver. An application that accesses a
hardware device uses some form of generic statements to do so. The device driver then
accepts these generic statements and converts them into a form that is understandable by
the device.
Today device drivers are practically available for every hardware device that includes
mouse, monitor, keyboard and printer.
Service Tool
A service tool is system software that is specifically used for managing and optimizing the
performance of computer hardware, operating system or application software. Several
service tools are integrated into an operating system.
Some of the commonly used service tools are:
Disk defragmenter: Allows you to detect computer files whose contents have been
stored on different parts of the hard disk, and combine all scattered content at one
place to increase efficiency.
System profiler: Allows you to get detailed information about the hardware
attached and software installed in the computer.
Virus scanner: Allows you to scan computer for any malicious files stored in it.
Editor: Allows you to insert or modify the text, data, or instructions in a file.
Compression: Allows you to reduce the actual size of the file to a smaller size.
Programming Software
Programming software is a set of tools that allow a programmer to write and implement
computer programs in a convenient way. The various tools included in programming
software are:
Text editor: Is a programming tool that allows you to write or modify the set of
instructions that constitute the program.
Compiler: Is a programming tool that translates the original program, called the
source code, to another computer language, called the object code. The object
code is usually in a form that can be processed further by other programs to make
the program ready for execution.
Interpreter: Is a programming tool that translates the original source code into a
binary form that can be understood by the computer. The computer then carries
out the instructions as specified in the program. This is called program execution.
81
Debugger: Is a programming tool that allows you to detect errors in a program and
fix them accordingly. The main objective of using a debugger is to produce an
error-free program.
In addition to the above tools, another tool that is widely used in most of the todays
programming software is Integrated Development Environment, simply called IDE. An IDE
combines together all the above mentioned tools into single software and provides a
graphical environment for programmers to do all the above mentioned tasks. The
advantage of using an IDE is that it provides a single interface to programmers to do all
their tasks, starting from writing a program to executing a program.
Programming Language
You are aware with the term language. It is a system of communication between you and
me. Some of the basic natural languages that we are familiar with are English, Hindi, Oriya
etc. These are the languages used to communicate among various categories of persons.
But how you will communicate with your computer? Your computer will not understand any
of these natural languages for transfer of data and instruction. So there are programming
languages specially developed so that you could pass your data and instructions to the
computer to do specific job. You must have heard names like FORTRAN, BASIC, COBOL
etc. These are programming languages. So instructions or programs are written in a
particular language based on the type of job. As an example, for scientific application
FORTRAN and C languages are used. On the other hand COBOL is used for business
applications.
There are two major types of programming languages. These are Low Level Languages
and High Level Languages. Low Level languages are further divided in to Machine language
and Assembly language.
Low Level Languages
The term low level means closeness to the way in which the machine has been built. Low
level languages are machine oriented and require extensive knowledge of computer
hardware and its configuration.
Machine Language
Machine Language is the only language that is directly understood by the computer. It
does not need any translator program. We also call it machine code and it is written as
strings of 1's (one) and 0s (zero). When this sequence of codes is fed to the computer, it
recognizes the codes and converts it in to electrical signals needed to run it. For example,
a program instruction may look like this:
1011000111101
It is not an easy language for you to learn because of its difficult to understand. It is
efficient for the computer but very inefficient for programmers. It is considered to the first
generation language. It is also difficult to debug the program written in this language.
The only advantage is that program of machine language run very fast because no
translation program is required for the CPU.
Assembly Language
It is the first step to improve the programming structure. You should know that computer
can handle numbers and letter. Therefore some combination of letters can be used to
substitute for number of machine codes.
The set of symbols and letters forms the Assembly Language and a translator program is
required to translate the Assembly Language to machine language. This translator program
is called `Assembler'. It is considered to be a second-generation language.
Advantages:
82
Disadvantages:
Application Software
83
Application software is a type of software that allows a user to perform one or more
non-computer related tasks. Application software can be broadly classified into following
categories:
Enterprise software: These software address the organizational needs and data
flow in a large distributed environment. The objective of using these software is to
increase the productivity and efficiency of the organization, which are often
distributed geographically over different physical locations. Services provided by
enterprise software are usually business-oriented tools such as online payment
processing, online shopping, automated billing systems, interactive product
catalogue, etc.
Educational software: These software address the needs of individuals and groups
who are in the education field. These software are primarily used for teaching or
self-learning purpose only. The examples include e-learning software, educational
games and computer-assisted language learning software.
Media software: These software address the needs of individuals who develop print
and electronic media for others to use. These software are mostly used in a
commercial or educational setting. The examples include Graphic Art software,
Desktop Publishing (DTP) software, HTML editors and Multimedia Development
software.
Installation of Software
Before you can use a software, you have to install it in your system. The installation is
usually a sequence of steps to setup the software in a computer system so that the
software can be successfully executed. During installation, various tests are performed to
determine the system suitability, and the computer is configured to store the related files
and any necessary settings required for that program to execute correctly.
Mostly, the installation process of one software is different from another. Therefore, most
software comes with their own installers. An installer is a special-purpose program that
allows you to install the software without any need of your intervention.
A software installation can be classified into one of the following categories:
Manual installation
Silent installation
Unattended installation
Self installation
Headless installation
84
Clean installation
Flat installation
Manual Installation
This type of installation involves installation performed without an installer or with a
significant amount of user intervention in addition to installer-assisted parts. This type of
installation also include the software installation where only the required files need to be
copied to the desired location to run the software, without any formal installation process.
Silent Installation
This type of installation does not display messages or windows showing the status of the
installation progress. However, in silent installation you need to specify the required inputs
for installation process in a separate file. This file is called response file. The installer gets
all the necessary inputs from this response file.
Unattended Installation
This type of installation is similar to the silent installation but with a difference. The
difference is that in unattended installation the status of the installation progress is duly
showed to the user. This type of installation is performed from non-graphical interface to
the installation process.
Self Installation
This type of installation is similar to the unattended installation, except for the need of
initial launch of the installation process.
Headless Installation
This type of installation is performed on a computer with no video output at all. This is
possible by performing the installation process from another machine connected via LAN or
via a serial cable.
Clean Installation
This type of installation is performed after removal of interfering factors to installation from
a computer. The interfering factors include files that are leftover from earlier installations
of the same program or from a setup that is abruptly terminated because of power failure.
In clean installation first the interfering factors are permanently deleted from the computer
and then only the new installation process is started.
Flat Installation
This type of installation involves installation of a program from a hard disk instead of the
original media device mostly CDs or DVDs. In this type of installation the installer and all
the supporting files required for installation are copied from the original media device to
the hard disk. This type of installation is usually performed in situations where the target
machine is unable to cope with random access reads from the original media at the same
time as performing the CPU-intensive tasks as required by the installation process.
Note: Unattended and headless installations are common tasks for system administrators.
85
Packages An Overview
What are Packages?
Computer software is often available as a package. A package or software package is a
bundle of one or several files that are necessary for the successful execution of the
software. A package may also be required to add features to software that is already
installed.
A package can be available in a standard package format that can be installed with the
help of program integrated with the operating system. Alternatively, a package can also be
installed using a self installer. A self installer is a program that performs the self
installation of the package.
2.
A package management system searches the local package database for the
required packages
3.
The package management system retrieves all the necessary packages from its
local package database
4.
The package management system starts the installation of the software prompting
for any manual actions if required
Installer
86
Installer
Single
vendor.
package
management
system
87
User interface
File management
Device management
Memory management
Process management
Networking
Security
User Interface
An important task of an operating system is to act as a mediator between the computer
hardware and the computer user. It interacts with the computer hardware on behalf of the
user. However to do so the OS needs to take input from the user.
The OS displays an interface on the computer monitor that it uses to communicate with a
computer user. The user communicates with the computer through this user interface by
typing in few simple commands without the need of remembering complicated control
methods.
Today, the GUIs are the most widely used user interface making use of mouse, keyboard,
drop-down menus, toolbars, etc. Because of ease of working with a GUI, today GUI-based
OS like Windows XP are most widely used amongst computer users.
File Management
A file is a collection of information stored on a disk. You make a file when you create
information (such as text or graphics) using some application, give the file a name and
save it on a disk. However, it is actually the OS that physically creates the file and store it
on a storage media. But apart from creating and saving a file, an OS is also responsible to
retrieve the content of the file or to remove the file from the storage media, when the user
gives the necessary commands.
Device Management
The OS is also responsible for managing various input and output devices attached to the
computer. It is responsible for controlling the working of hard disk drive, displaying output
on monitor, or communicating with peripherals like printers.
However, to communicate with various input/output devices, the OS requires special
software called the driver. This is because the OS is written in a high-level programming
language (which humans can understand) whereas the input and the output devices
attached to the computer can understand electrical signals only. It is the responsibility of
88
the driver to translate the OS commands into electrical signals (bits and bytes for most
devices) or a series of laser pulses in a printer.
Memory Management
An important task of an OS is memory management. Computer memory is one of the most
crucial components of the computer system. The computer memory consists of registers,
cache, random access memory, etc. It is the responsibility of the OS to determine which
memory component is free and which can be allocated or deallocated to a resource. This
resource can be a hardware device like printer etc. or a software application like Word etc.
An OS is also responsible for managing the virtual addresses. If multiple resources are
accessing the computer memory simultaneously, then it is the responsibility of the OS to
prevent the resources from interfering with each others memory. This is achieved by
assigning separate address spaces for each of the resources which are in the memory.
Each resource can access only that part of the memory that is uniquely assigned to it.
The OS can also write inactive memory pages to secondary storage. This process is called
paging or swapping.
Process Management
Every program running on a computer, be it a service or an application, is a process. And
most of todays processor support multitasking, executing several processes at a time. But
despite of this fact, only one process can be executed by a CPU at any given time. It is the
responsibility of the OS to determine how to allocate the CPU to any given process. This is
called process management.
All the processes that are seeking for CPU usage are added to a process queue. Most OS
allocate certain priority level to a process that is seeking for the CPU usage. The OS also
allots a certain CPU time to each of the process. This is called time slicing.
When a process currently in CPU exceeds the time assigned to it, it is removed from the
CPU and is placed at the end of the process queue. The next process that is to allot the
CPU is the one that is having the highest priority. Therefore, using time slicing and priority
level, an OS can schedule the CPU resource amongst different processes that are vying for
the CPU resource.
Networking
Most current OS has a built-in support for TCP/IP networking protocols. This means that
computers running dissimilar operating systems can participate in a common network for
sharing resources such as computing, files, printers, and scanners using either wired or
wireless connections.
Security
Most of todays OS provide some or other form of security level. They provide mechanism
to protect your computer as well as the data stored in the computer. They provide
password protection to keep unauthorized users from accessing your system. Some
operating systems also maintain activity logs and accounting of the user's time for billing
purposes. An OS also provide backup and recovery utilities to use to recover the system in
case of system failures.
89
Firmware
An Overview of Firmware
In addition to the software discussed, a special type of program is often used in computers
called firmware. In computing, firmware is a computer program that is embedded in a
hardware device, for example a microcontroller. It can also be provided on flash ROMs or
as a binary image file that can be uploaded onto existing hardware by a user.
Note:
A microcontroller (also MCU or C) is a computer-on-a-chip. It is a type of microprocessor
emphasizing high integration, low power consumption, self-sufficiency and costeffectiveness, in contrast to a general-purpose microprocessor (the kind used in a PC). In
addition to the usual arithmetic and logic elements of a general purpose microprocessor,
the microcontroller typically integrates additional elements such as read-write memory for
data storage, read-only memory, such as flash for code storage, EEPROM for permanent
data storage, peripheral devices, and input/output interfaces.
As its name suggests, firmware is somewhere between hardware and software. Like
software, it is a computer program which is executed by a microprocessor or a
microcontroller. But it is also tightly linked to a piece of hardware, and has little meaning
outside of it.
Origins
The term "firmware" was originally used for micro-programs (method employed to
implement machine instructions in a CPU) written for microsequencers (part of the control
unit of a CPU that generates the addresses used to step through the micro-program) such
as AMD29xx. Later on, it was coined to indicate a functional replacement for hardware on
low-cost microprocessors.
In practical terms, firmware updates can improve the performance and reliability, indeed
even the basic available functionality of a device, and many devices benefit from regular
firmware updates. One of the most common devices to have regular firmware updates are
recording devices such as optical media writers (DVD, CD, HD DVD, Blu-ray), as media
technologies extend, so firmware updates ensure hardware is kept up to date and
compatible.
90
non-volatile media such as EEPROM and Flash, or SRAM solutions, such as the firmware
loaded by an operating system device driver, as described below.
91
Summary
In this chapter, you learned:
An IDE combines together all the programming tools into single software and
provides a graphical environment for programmers to do all the required tasks.
A package can be available in a standard package format that can be installed with
the help of program integrated with the operating system or as a self installer.
92