Chapter 2computer System
Chapter 2computer System
COMPUTER SYSTEM
System is a composition or group of different integrated components that work together to achieve a
common goal. A computer system is also consists of two basic components such as computer hardware
and computer software.
A typical computer system i.e. hardware consists of input, output, storage and the central processing unit
(CPU). Each of these components is equally important to the functioning of the entire computer system.
Most digital computers are designed based on John Von Neuman architecture.
Keyboard
This is the most commonly used input device which resembles the typewriter keyboard. This is the
oldest input device used right from the invention of the computer. This is used to enter any type of data
into the computer which may be text, numbers or any symbolic notations. Normally the keyboard
contains 102 keys. Nowadays as the software industry is growing rapidly accordingly many changes are
brought in the layout to satisfy the needs of the soft wares. The communication between the keyboard
and the system unit is brought with the help of a cable which transfers the bits through the bus (Group of
wires carrying the bits) parallel or consecutively.
1
FCSE, AMU (2014)
Nowadays, in addition to the above keys, many other keys are included making the keyboard as 105,
108 and so on.
Pointing Devices
Input data also involves entering commands and selecting options. Mouse, trackball, and joystick were
all developed to make this easy. Each of these devices allows the user to identify and select the
necessary command or option by moving the cursor to a certain location on the screen or tablet and
sending signal to the computer. They are used in menu-driven programs – that is, programs that offer
varying levels of means or choices to the user to lead him or her through the program functions.
I. Mouse - The mouse is a handheld device connected to the computer by a small cable. As the mouse is
rolled across the desktop, a ball inside the mouse that contacts the desktop moves the cursor across the
screen. When the cursor reaches the desired location, the user usually pushes mouse button once or
twice to signal a menu selection or a command to the computer. Mouse technology is often used with
graphics-oriented microcomputers and software’s like Windows. With special software for graphics, the
mouse can be used like a pen or a paintbrush to create figures and pattern directly on the video display
screen. The keyboard still is used to type in characters and issue some commands, depending on the
software.
Scanner
It is an input device that can read text or illustrations printed on the paper and translate the information
into a form that the computer can use. It works by digitizing the image by dividing it into a grid of boxes
and representing each box with either zero or one, depending on whether the box is filled in. The
resulting matrix is called bit map, can be stored in a file. These do not distinguish text from other
figures; they represent all images as bit maps. So, to edit text read by an optical scanner, an optical
2
FCSE, AMU (2014)
character recognition (OCR) system to translate the image into ASCII characters is required (which
usually come with the latest scanners).
Digital Camera
Images can be put into a computer using a digital camera. These images can be manipulated in many
ways using various imaging tools. This takes a still photograph, stores it and then sends it as a digital
input into the computer, stored as digital files.
Monitor
This is called by different names like screen, VDU (Visual Display Unit), console etc. This is used to
display the processed data. The monitors are classified into mainly 2 categories:
1. Monochrome – actually displays two colors, one for background usually black, one for foreground
normally white.
2. Color - can display from 16 to 1 million different colors. They are sometimes referred as RGB as
they accept three separate signals – Red, Green and Blue.
Printers
Printer is a device that prints on the paper (hard copy). There are different types of printers depending on
the technology used.
a. Dot-Matrix Printers
Also called as serial/character printers, were developed with two objectives, i.e., greater speed and more
flexibility. The images formed are by a print head that is composed of a series of little print hammers
that look like the heads of pins. These print hammers strike the ribbon individually as the print
mechanism moves across the entire print line in both directions. They can produce variety of type styles
and graphics without requiring an operator to stop the printer.
3
FCSE, AMU (2014)
The print-head of a dot matrix printer usually has 9 pins. High-quality printers have print heads with as
many as 24 pins, which allow a much more precise image to produce about 360 dpi(Dots per (square )
inch).
Plotters
A plotter is a specialized out put device designed to produce high-quality graphics in a variety of colors.
There are two basic types of plotters: those that use pens and those that don’t use. Drum plotters and
flatbed plotters both use pens. Electrostatic plotters do not.
- In a drum plotter, the paper is mounted on the surface of a drum. The drum revolves and the plotter
pens (which are similar to felt-tip pens) are horizontally positioned over the target area. When
the paper has rotated to the correct point, the pens are dropped to the surface and moved left and
4
FCSE, AMU (2014)
right under program control across the paper as the drum revolves. When the image is complete,
the pens are raised from the surface.
- Flatbed plotters are designed so that the paper is placed flat and one or more pens move horizontally
and vertically across the paper.
- Electrostatic Plotters use electrostatic charges to create images out of very small dots on specially
treated paper. The paper is run through a developer to allow the image to appear. Electrostatic
Plotters are faster than pen plotters and can produce images of very high resolution.
5
FCSE, AMU (2014)
B. Arithmetic - logic unit (ALU)
This is a part of CPU which performs the Arithmetic calculations of addition, subtraction,
multiplication, division and comparisons. These comparisons, which are basically “less than”, “greater
than”, and “equal to” , can be combined in to several common expressions, such as: ”greater than or
equal to” The objective of most instructions that use comparisons is to determine which instructions
should be executed next.
It is used to keep track of and execute instructions. This unit contains adder, counter, comparator, and
complimentary etc. to do different operations.
Arithmetic and logical unit also support the three major logic operations i.e. AND (Logical
Multiplication), OR (Logical addition) and NOT (Logical Negation).
Registers are storage units that connect the arithmetic-Logic unit to the main memory. When an
instruction is fetched from main memory, it is placed in a register to wait instructions from the control
unit. Data are also stored in registers prior to execution in the ALU.
Without the arithmetic-logic unit (ALU), computers would not be able to do most of the tasks that are
useful.
The ALU controls the speed of calculations and so receives a great deal of attention from computer
engineers trying to meet the need of the fast-paced business world. Older microcomputers speeds are
usually measured in milliseconds – 1 millionth of a second. Larger, powerful computer’s speeds are
measured in nanoseconds- 1 billionth of a second- or picoseconds-1 trillionth of a second.
Other elements to be considered in ALU are:
a) Registers
These are special temporary storage locations within the CPU, some in Control unit and others in ALU.
It is used to speed up data transfer rate inside the computer system. Registers accept, store and transfer
data and instructions that are being used immediately. To execute an instruction, the control unit of the
CPU retrieves it from the main memory and places into the register. There are different types of
registers. Some of them are accumulator register, instruction counters, stack registers, flag registers, data
registers, address registers, I/O registers etc.
Two operations take place:
(i) Instruction cycle - refers to retrieval of an instruction from main memory
(ii) Execution cycle - refers to execution of instructions and subsequent storing of the results in the
register.
b) Bus
Refers to an electrical pathway through which bits are transmitted between the various computer
components. Depending on the design of the system, several types of buses may be present. Data Bus –
carries data through the CPU & Address Bus – carries the address of the memory location where the
data is stored through the CPU.
The wider the bus, the more data it can carry at one time and thus greater the processing speed of the
Computer.
Function of main memory – to act as a buffer between the CPU and the rest of the computer system
components. The CPU can utilize only those instructions and data that are stored in main memory. The
main memory is RAM - name is derived with its usage as the data can be stored and retrieved at random
from anywhere on the chip in approximately the same amount of time. It is in a volatile state i.e., when
computer is off, RAM is empty, when it is on, capable of receiving and holding copy of the instructions
and data necessary for processing.
Because of its volatile nature, user’s work is often saved on to nonvolatile secondary storage devices
such as diskettes (Floppy or Hard). Thus functions of memory can be listed as below:
i. Storage of a copy of the main software program that controls the general operation of the
computer (such as operating system). This copy is loaded into memory when computer is turned
on (booted) and stays there as long as the computer is on.
ii. Temporary storage of a copy of application program instructions (like Word, Excel) to be
retrieved by the CPU for interpretation and execution.
iii. Temporary storage of data that are entered from Keyboard or other input devices until
instructions call for the data to be transferred into the CPU for processing.
iv. Temporary storage of the data that has been produced as a result of processing until instructions
call for the data to be used again in the subsequent processing or to be transferred to an output
device such as screen, printer or disk storage device.
Let’s see some of the primary memory components in the computer system.
A. R A M (Random Access Memory)
RAM is termed as Main memory of computer. If the capacity of RAM is much large, then it can
- Receive and use much larger programs.
- Hold copies of more than one program to support the sharing of the computer by more than one
user.
- Operate faster and more efficiently.
- Hold images for creating graphics and animation.
- Work and manipulate more data at one time.
A bank of 1 K RAM chip can store 1024 bytes. Similarly 64 K RAM chip can store 64 K or 65,536 or
1024 X 64 bytes of data i.e., each RAM capable of storing a column of 65,356 bits.
RAM can be static or dynamic.
7
FCSE, AMU (2014)
1. PROM
It stands for Programmable Read-Only Memory. It functions in the same way a regular ROM
component does, with a difference that these chips are custom-made (customer determines what data
and instructions are recorded on them) for the user by the manufacturer. The disadvantage of these chips
is that if data is recorded on them once, it can’t be changed. To store any thing on PROM, first it must
be free (clear).
2. Erasable programmable Read-Only Memory (EPROM)
These chips were developed as an improvement over PROM chips. EPROM is beneficial over PROM in
the manner that with the help of a special device, using ultraviolet rays the data and instructions on it can
be erased in approximately 15 minutes. Then the device called as PROM burner is used to reprogram the
chip. To change the instructions on EPROM chip, the chip must be taken out of the machine and then
put back when changes have been made. This is seldom used by the computer users instead replace the
EPROM with a new programmed one.
There are different types of secondary storage devices available. They are also in some context termed
as input output devices as we store as well as retrieve data from them. Some were used during the earlier
generations of computers. Nowadays diskettes, CD-ROM’s and small magnetic tapes are familiar
storage devices. Based on the way the data is accessed from them, secondary storage devices are
categories in to two groups: direct (random) and sequential.
B. Magnetic tape
Magnetic tapes are particularly popular form of secondary storage because of their high data density
(number of bytes of information per inch of tape). They are made of Mylar-based plastic film which can
be magnetized. Information is stored on magnetic tape by running the tape over an electromagnetic
read/write head. Magnetic tapes typically have seven or nine tracks.
Disadvantages:
- While accessing information, the entire tape must be read sequentially which results in slow access
time.
- Sensitive to distortion by environmental influences such as dust, humidity and temperature
variations.
Floppy Disk
- Floppy is a secondary storage devices that holds data for a long period of time. But the duration of
the data with in this device depends on the condition / place where the disk is placed. Because it is
sensitive to distortion by environmental and human influences such as dust, Worms and virus. It
mostly used for transferring data from one computer to another.
Hard disks
Hard disk is a high capacity magnetic disk made up of metal which can be fixed inside the system unit
of the computer system.
✓ Hard disks hold more data and are faster than floppy disks. A hard disk, can store from 10
to several Gigabytes.
✓ It has a part that rotates when it is operated.
✓ Hard disks are less portable than floppies, even though they are removable.
B. Optical Disks
Optical disk is a faster kind of mass storage. This type of storage involves the use of high-power laser
beam to burn microscopic spots in a hard disk’s surface coating. They have no rotating parts. Data is
represented by the presence (binary 1) and the absence (binary 0) of holes of storage locations. The
patterns of spots detected by the laser during the read operation are converted into electrical signals used
by the computer.
Here one can store at most 100 GB for a single 12-inch disk. This type of large storage is especially
required where images must be stored, as images take up much more storage space than the text or
numerical data. The data recorded on optical media is not damaged by stray magnetic fields and surface
problems like fingerprints, dust, scratches and so on.
9
FCSE, AMU (2014)
The main kinds of optical disks are:
1. CD-ROM (Compact Disk- Read Only Memory)-on this optical disk, data is imprinted by the
disk manufacturer. The user cannot erase it, change it or write on the disk. The user can only
“read” the data. This type of optical disk is used primarily for making huge amounts of
prerecorded data, such as operating systems, government statistics, Encyclopedias, medical
reference books, dictionaries and legal libraries – immediately available to the user.
2. .CD-R & CD-RW drive – CD-R stands for compact disk-recordable drive, is a type of disk
drive that can create CD-ROMs. To create this CD, one should have the CD-R software package.
These drives can also read CDs and play audio CDs.
3. CD-RW disk is a short form for Compact Disk Rewritable disk and this enables to write onto it
multiple sessions. This drives and disks, one can treat the optical disk like a floppy or hard disk,
writing data on it multiple times.
System software is the program that control the way the computer operates. These include the operating
systems, language soft wares (translators), utilities and the like. The two most important categorizes of
system soft wares are operating system and language software. System soft wares lies between the
user and the hardware parts of the computer.
USER
SOFTWARE
HARDWARE
OPERATING SYSTEM
The operating system is the most important computer software. An operating system is a set of programs
that controls the overall operation of the computer. It directs all processing activities within the
computer, calling in other systems software when needed, scheduling jobs, and allocating storage
facilities, activating input and output devices and many other tasks to ensure the proper and efficient use
of hardware by application programs. The operating system provides an interface between the user and
other components of a computer system.
The part of an operating system which controls the activities and operations of the other components of
the operating system are called executive (or supervisor or kernel). On small microcomputers the kernel
is normally called a monitor which is stored permanently in ROM and starts execution as the computer
10
FCSE, AMU (2014)
is turned on. On most other modern computers the supervisor or monitor is loaded into main storage
usually from a disk by booting up the system.
Language Software
Are software’s which are used by programmers to develop application soft wares and translate programs
to machine code.
Language software is a generic name consisting of various programs that serve as editors & translators to
develop programs in a number of programming languages.
Includes: - Translators, general purpose routines and utilities & high level languages
Translator: - is a program that converts one or more languages to another language. Three types of
translators are assemblers, Compilers & interpreters.
Assembler: - is a program that translates assembly languages into machine code.
Compiler: - is a program that translates a high level language into machine code. (example:PASCAL,
11
FCSE, AMU (2014)
FORTRAN COBOL)
Interpreter: - is a program that translates each instruction of high level language & executes the
instruction before translating the next instruction.
Application Software
• These types of software’s that are designed to perform tasks for the specific area use in more than one
installation.
• Are usually called application packages as they may include a number of programs along with operating
instruction, documentation and so forth.
• Depending on their function or task they are categorized in to the following:
1. Word Processors/ Word processing
• A computerized typewriter which permits the electronic creation, editing, formatting, filing and printing text.
• The most common application of microcomputers.
• Until recently, word processing could be done only dedicated word processors. A dedicated word processor is
a computer that denies its users the opportunity to execute any other program.
Example: WordStar, WordPerfect, Microsoft word
2. Spreadsheet
• An electronic worksheet display on the VDU.
• Until recently, financial analysis and other mathematical calculation were done by entering numbers on pages
of an accountants ruled ledger pad.
• You can quickly create a model of a situation on a spreadsheet by entering labels, numbers & formulas.
• Using the programs built-in function you can perform complicated calculations such as net percent value,
internal rates of return, and monthly payments on a loan.
Example: Lotus 1-2-3, Microsoft Excel, Quatropro
12
FCSE, AMU (2014)