PPS - Unit 1
PPS - Unit 1
INTRODUCTION OF COMPUTER
SYSTEM AND PROBLEM SOLVING
Computer:
The word computer comes from the word “compute”, which means, “to calculate”
Computer is an electronic device that can perform arithmetic and logical operations
at high speed
A computer is also called a data processor because it can store, process, and retrieve
data whenever desired
Data is raw material used as input and information is processed data obtained as
output of data processing
Architecture of Computer system
4
Note:
SSI: Small Scale Integration
MSI: Medium Scale Integration
PDP: Programmable Data Processors
CDC: Control Data Corporation
Generation of Computers
14
Note:
VLSI: Very Large Scale Integration VAX: Virtual Address Extension
Generation of Computers
15
Note:
ULSI: Ultra Large Scale Integration SGI: Silicon Graphics Inc.
PVM: Parallel Virtual Machine PARAM: Parallel Machine
Generation of Computers
16
1. According to Type
i. Digital Computer
A computer that performs calculations and logical
operations with quantities represented as digits,
usually in the binary number system
iii. Mainframes
A very large and expensive computers capable of
supporting hundreds, or even thousands, of users
simultaneously
Classification of Computer
20
v. Workstations
A terminal or desktop computer in a network
In this context, workstation is just a generic term for a user's
machine (client machine) in contrast to a "server" or
"mainframe"
Classification of Computer
21
3. According to Purpose
i. General Purpose
General purpose computers are
designed to perform a range of tasks
e.g. Personal Computer
A storage device is any computing hardware that is used for storing and extracting
data
It can hold and store information both temporarily and permanently, and can be
internal or external to a computer, server or any similar computing device
There are two main types of storage devices: Primary and Secondary
Main Memory consists of Random Access Memory (RAM) and Read Only
Memory (ROM)
Random Access Memory (RAM)
29
DRAM:
DRAM needs to be refreshed thousands of times per second
DRAM stores a bit of data using a transistor and capacitor pair, which
together comprise a memory cell
The capacitor holds a high or low charge (1 or 0, respectively), and the
transistor acts as a switch that lets the control circuitry on the chip read the
capacitor's state of charge or change it
As this form of memory is less expensive to produce than SRAM, it is the
predominant form of computer memory used in modern computers.
SRAM:
SRAM does not need to be refreshed, which makes it faster, but it is more
expensive than DRAM
In SRAM, a bit of data is stored using the state of a flip-flop
This form of RAM is more expensive to produce, but is generally faster and
requires less power than DRAM and, in modern computers, is often used as
cache memory for the CPU
Read Only Memory (ROM)
31
A PROM is a memory chip on which data can be written onto only once. Once
a program is written onto a PROM chip, it remains there forever
Unlike RAM, PROM retains its contents when the computer is turned off
The difference between a PROM and a ROM is that a PROM is manufactured as
blank memory and programmed later with a special device called PROM
programmer or the PROM burner, whereas the ROM is programmed during
manufacturing process.
The process of programming a PROM is sometimes called burning a PROM
Memory Storage
Devices
Magnetic Disks
Number System
38
Characteristics
Use symbols such as I for 1, II for 2, III for 3 etc
Each symbol represents the same value regardless of its position in the
number
The symbols are simply added to find out the value of a particular
number
Difficulty
It is difficult to perform arithmetic with such a number system
Positional Number System
40
Characteristics
Use only a few symbols called digits
These symbols represent different values depending on the position they
occupy in the number
The value of each digit is determined by:
1. The digit itself
2. The position of the digit in the number
3. The base of the number system (Base = total number of digits in the
number system)
The maximum value of a single digit is always equal to one less than
the value of the base
Positional Number System
41
There are four Positional Number Systems: Binary, Decimal, Octal and
Hexadecimal
Decimal 8 4 2 1
00 0 0 0 0
01 0 0 0 1
02 0 0 1 0
03 0 0 1 1
04 0 1 0 0
05 0 1 0 1
06 0 1 1 0
07 0 1 1 1
08 1 0 0 0
09 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Binary Number System
42
Characteristics:
The maximum value of a single digit is 1 (one less than the value of the
base)
Characteristics:
The maximum value of a single digit is 9 (one less than the value of the base)
Characteristics:
The maximum value of a single digit is 7 (one less than the value of the base)
Since there are only 8 digits, 3 bits (23 = 8) are sufficient to represent any octal
number in binary
Hexadecimal Number System
45
Characteristics:
Has total 16 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7,8, 9, A, B, C, D, E, F). Hence its
base = 16
The symbols A, B, C, D, E and F represent the decimal values 10, 11, 12, 13, 14
and 15 respectively
The maximum value of a single digit is 15 (one less than the value of the base)
Since there are only 16 digits, 4 bits (24 = 16) are sufficient to represent any
hexadecimal number in binary
Conversions
46
Decimal to Binary
Here is an example of using repeated division to convert 1792
decimal to binary:
Decimal to Octal
Here is an example of using repeated division to convert 1792
decimal to octal:
Decimal to Hexadecimal
Here is an example of using repeated division to convert 1792
decimal to hexadecimal:
Drop any leading zeros or pad with leading zeros to get groups of four
binary digits (bits):
Binary 011100101 = 1110 0101
Decimal 8 4 2 1
00 0 0 0 0
01 0 0 0 1
02 0 0 1 0
03 0 0 1 1
04 0 1 0 0
05 0 1 0 1
06 0 1 1 0
07 0 1 1 1
08 1 0 0 0
09 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Hexadecimal to Octal
57
System software are designed to control the operation and extend the
processing capability of a computer system
e.g. Operating System, Compiler, Assembler, Linker, Loader
System Software are programs that are designed specifically for running the
hardware on a personal computer
This means that system software is designed to communicate with the internal parts
of your computer such as the hard drive, RAM, ROM, cache, microprocessors, etc. so
that the user doesn't have to.
System software is a collection of programs that supports computer operations.
System software can be separated into two different categories, Utility Programs
and Operating Systems
Utility programs perform a very specific task, to either enhance or manage your
computer, for example your virus protection program
60
Introduction to System Software
61
Introduction to System Software
62
Editor:
A program that enables you to create and edit text files
Text Editor is a simple application required for editing plain text such as
notepad.
Introduction to System Software
63
Compiler:
Assembler:
Linker:
In high level languages, some built in header files or libraries are stored
These libraries are predefined and these contain basic functions which
are essential for executing the program
These functions are linked to the libraries by a program called Linker
If linker does not find a library of a function then it informs to compiler
and then compiler generates an error
The compiler automatically invokes the linker as the last step in compiling
a program
Introduction to System Software
66
Loader: