Introduction
Introduction&toProgramming with
Computer and Its
Architecture
ESP8266
P.Rajakumar
Assistant Professor
Department of CSE
Parul Institute of Technology
Content
1. Characteristics……………………………..……………. 1
2. Computer Architecture………………...…………… 2
3. Generations…………….…………….……..…………….3
4. Classifications….………………………….…………….. 4
5. Applications……….……………….………………..…… 6
6. Central Processing Unit ………..……….............. 8
7. Memory…………………………………………………….. 9
INDEX
Characteristics of Computer
• Speed
• Accuracy
• Automation
• Diligence
• Storage
• Versatility
• Multitasking
• Communication
Speed
The computer can process data very fast, at the rate of millions of
instructions per second (MHz or GHz) .
Some calculations that would have taken hours and days to complete
otherwise, can be completed in a few seconds using the computer.
For example, calculation and generation of salary slips of thousands
of employees of an organization.
weather forecasting that requires analysis of a large amount of data
related to temperature, pressure and humidity of various places,
etc.
Accuracy
Computer provides a high degree of accuracy.
For example, the computer can accurately give the result of division
of any two numbers up to 10 decimal places.
Automation
Once programmed, a computer can work automatically without
human intervention.
Diligence
When used for a longer period of time, the computer does not get
tired or fatigued. It can perform long and complex calculations with
the same speed and accuracy from the start till the end.
Storage
Large volumes of data and information can be stored in the computer
and also retrieved whenever required.
A limited amount of data can be stored, temporarily, in the primary
memory. Secondary storage devices like floppy disk, compact disk,
Hard Disk, SSD can store a large amount of data permanently.
Versatility
Computer is versatile in nature. It can perform different types of tasks
with the same ease.
At one moment you can use the computer to prepare a letter document
and in the next moment you may play music or print a document.
Computers have several limitations too. Computer can only perform
tasks that it has been programmed to do.
Communication
Computers can connect and communicate with other systems through
networks (Internet, LAN, WIFI,….).
Multitasking
Computers can run multiple tasks simultaneously using multi-core
processors and operating systems.
Computer System Architecture
Computer architecture refers to the definition of basic attributes of
hardware components and their interconnections, basically defines
the logical structure of a computer system.
Computer Architecture
Various components
• Central Processing Unit
• Input Unit
• Output Unit
• Memory Unit
Central Processing Unit
➢ The CPU, which is popularly referred to as the “brain” of the
computer, is responsible for processing the data inside the computer
system.
➢ It is also responsible for controlling all other components of the
system.
The main operations of the CPU include four phases:
• Fetching instructions from the memory.
• Decoding the instructions to decide what operations to be preformed.
• Executing the instructions.
• Storing the results back in the memory.
This four-phase process is known as the CPU cycle.
The central processing unit consists of the following subsystems:
• Arithmetic Unit (AU)
• Logic Unit (LU)
• Control Unit (CU)
The CPU makes use of the following memory subsystems.
• Main Memory Unit
• Cache Memory
• Registers
Arithmetic Logic Unit
Arithmetic Unit (AU) is a part of the CPU that performs arithmetic
operations on the data. The arithmetic operations can be addition,
subtraction, multiplication or division.
The multiplication and division operations are usually implemented by
the AU as the repetitive process of addition and subtraction
operations respectively.
➢ The output of AU contains the result of the operation.
➢ The output is stored in a storage register by the AU.
➢ Register is a small storage area inside the CPU from where data is
retrieved faster than any other storage area.
Logic Unit
Logic Unit (LU) is a part of the CPU that performs logical operations on
the data. It performs 16 different types of logical operations.
The various logical operations include greater than (>), less than (<),
equal to (=), not equal to (≠), shift left, shift right, etc.
LU makes use of various logic gates, such as AND, OR, NOR, etc for
performing the logical operations on the data.
Control Unit
➢ Control Unit (CU) is an important component of CPU that controls
the flow of data and information.
➢ It maintains the sequence of operations being performed by the CPU.
➢ It fetches an instruction from the storage area, decodes the instruction
and transmits the corresponding signals to the AU or LU.
➢ CU uses a program counter register for retrieving the next instruction
that is to be executed.
Main Memory Unit.
➢ The main memory is referred to as the internal memory or primary
memory of the computer.
➢ It is also known as Random Access Memory (RAM). It is a
temporary storage medium that holds the data only for a short
period of time.
➢ Once the computer is switched off, the data stored in the RAM gets
erased.
➢ The memory space of RAM is limited and therefore all the files and
instructions cannot be stored in it.
Input Unit
The input unit of a computer system is the part responsible for
accepting data and instructions from the user.
Input Devices
➢ Keyboard
➢ Mouse
➢ Scanner
➢ Microphone
➢ Webcam
➢ Touchscreen
Output Units
The output unit is the part of a computer system that converts
processed data (information) from the computer into a
human-readable form and presents it to the user.
Output Devices
➢ Monitor
➢ Pritnter
➢ Speaker
➢ Headphones
➢ Projector
GENERATIONS OF COMPUTERS
➢ Over the years, various computing devices were invented that
enabled the people to solve different types of problems.
➢ All these computing devices can be classified into several
generations.
➢ These generations refer to the phases of improvement made to
different computing devices.
➢ The different phases of improvement made to computing devices
resulted in a small, cheap, fast, reliable and productive
computer.
The history of computer development is often discussed in terms of
different generation of computers, as listed below.
▪ First generation computers
▪ Second generation computers
▪ Third generation computers
▪ Fourth generation computers
▪ Fifth generation computers
First generation computers
➢ The first generation computers were employed during the period
1940–1956.
➢ These computers used the vacuum tubes technology for calculation
as well as for storage and control purposes.
Vacuum Tubes
Technology Used: Vacuum tubes
Speed & Size: Very slow and huge in size
Programming Language: Machine language (binary)
Example: ENIAC (Electronic Numerical Integrator and Computer), UNIVAC(UNIVersal
Automatic Computer)
Limitations: Expensive, generated a lot of heat, low reliability.
Advantages.
➢ These computers were the fastest computing devices of their time.
➢ These computers were able to execute complex mathematical
problems in an efficient manner.
Disadvantages
➢ The vacuum tube technology computers are very large and bulky.
➢ Not easily transferable from one place to another.
➢ They were single tasking because they could execute only one
program at a time.
➢ They generated huge amount of heat and hence were prone to
hardware faults.
Second Generation
➢ The second generation computers were employed during the
period 1956–1963.
➢ The main characteristic of these computers was the use of
transistors.
➢ The use of transistor technology helped in improving the
performance of computers.
➢ Transistor was a superior technology over vacuum tubes.
➢ Transistors used in second generation computers were smaller,
faster, cheaper and generated less heat.
➢ Transistors were also light weight electronic devices that required
very less power during their operation.
➢ Printers, secondary storage and operating system technology
were also invented during this era.
➢ Another major technological development made to these computers
was the replacement of the machine language with the assembly
language.
➢ Assembly language is a low-level language that allows the
programmer to use simple English words—called mnemonics—to
represent different instructions in a program.
Technology: Transistors
Programming Language: Assembly language
Memory: Magnetic core memory
Input/Output: Punched cards and magnetic tape
Examples: IBM 1401, IBM 7094
Advantages: Smaller, faster, more reliable, energy-efficient
Advantages
Fast computing at their time.
Able to transfer one place to another.
Consume less power.
Less maintenance.
Disadvantages.
Input and output media is not improved.
Placed in air-conditional places.
High cost.
Third Generation
➢ The third generation computers were employed during the period
1964–1975.
➢ The major characteristic feature of third generation computer
systems was the use of Integrated Circuits (ICs).
➢ The IC technology was also known as microelectronics technology.
➢ ICs are the circuits that combine various electronic components, such
as transistors, resistors, capacitors, etc. onto a single small silicon
chip.
Technology: Integrated Circuits
Programming Language: High-level languages (e.g., COBOL,
FORTRAN)
Input/Output: Keyboard and monitor
Examples: IBM 360, PDP-8
Features: Multiprogramming, better performance, lower cost
Fourth Generation
➢ The fourth generation computers were employed during 1975–1989.
➢ The invention of Large Scale Integration (LSI) technology and
Very Large Scale Integration (VLSI) technology used.
➢ The LSI technology allowed thousands of transistors to be fitted
onto one small silicon chip.
➢ VLSI technology allowed hundreds of thousands of transistors to
be fitted onto a single chip.
➢ The progress in LSI and VLSI technologies led to the development
of microprocessor
Technology: Microprocessors (VLSI – Very Large Scale Integration)
Memory: Semiconductor memory
Programming Language: High-level languagesInput/Output: GUI,
mouse, keyboard
Input/Output: GUI, mouse, keyboard
Examples: Intel 4004, IBM PC, Apple Macintosh
Fifth Generation
➢ The different types of modern digital computers come under the
categories of fifth generation computers.
➢ The fifth generation computers are based on the Ultra Large Scale
Integration (ULSI) technology that allows
➢ almost ten million electronic components to be fabricated on one
small chip.
➢ The ULSI technology helps in increasing the power and speed of the
microprocessor chips and the capacity of primary and secondary
storage devices.
Advantages.
➢ They are the fastest and powerful computers till date.
➢ They are able to execute a large number of applications at the same
time
➢ The use of ULSI technology helps in decreasing the size of these
computers to a large.
➢ They are versatile for communications and resource sharing.
Technology: AI, Machine Learning, Quantum computing, ULSI (Ultra-
Large Scale Integration)
Examples: Robotics, Expert systems, Natural Language Processing.
Goal: Create machines that can think, learn, and reason like humans.
Classifications of Computers
The main function of each of computer is to process the data and
provide some output to the users. However, the methods or techniques
used by these computers to process and handle the data may be
different.
We can classify the computers according to the following three
criteria:
1. Based on operating principles
2. Based on applications
3. Based on size and capability
Based on Operating Principles
On the basis of operations performed and methods used to store and
process the data and information , computers can be classified into the
following categories:
1. Analog computers
2. Digital computers
3. Hybrid computers
Analog computers
➢ The analog computers represent data in the form of continuous
electrical signals.
➢ These computers are very fast in their operation.
➢ However, the results produced by these computers are not very
accurate.
➢ Therefore, the analog computers are widely used in applications in
which the accuracy of results is not a major concern.
➢ They are powerful tools to solve differential equations.
➢ The electronic circuit employed in modern analog computers is
generally an Operational Amplifier (Op-Amp).
➢ It is made up of semiconductor integrated circuits.
Digital computers
➢ The digital computer, also known as the digital information
processing system, it stores and processes data in the digital form.
➢ Therefore, each type of data is stored in 0s and 1s.
➢ The output produced by these computers is also in the digital form.
➢ The digital computers are also capable of processing the analog data.
➢ However, the analog data should be first converted to the digital
form.
➢ Digital computers are generally faster and more reliable.
➢ Provide more accurate results.
➢ The computer used by individual, colleges, small and medium sized
businesses.
Hybrid Computer
➢ The hybrid computer is a combination of analog computer and
digital computer.
➢ Therefore, the hardware components of hybrid computers are usually
the mixture of analog and digital components.
➢ These features make the hybrid computers very fast, efficient and
reliable.
➢ In this system data is generally measured and processed in the form
of electrical signals and is stored with the help of digital components.
➢ The hybrid computers are also less expensive than the digital
computers.
➢ This computer used in hospitals to measure the heartbeat of the
patient, used in scientific applications and used in various
engineering fields for controlling business process.
Based on Applications
Based on applications computers can be classified into the following
categories:
➢ General purpose computers
➢ Special purpose computers
General Purpose Computers
➢ A general-purpose computer is designed to process and run various
applications, depending on the software installed.
➢ general purpose computers are not efficient and consume a large
amount of time in generating the result.
Examples.
• PC
• Smartphones
• Workstations
• Servers
Special purpose Computers
Special-Purpose Computers are designed and optimized to
perform a specific task or a limited set of tasks efficiently.
Examples.
• ATM.
• Washing Machine Controllers.
• Traffic Light Controllers.
• Flight Control Systems.
• Medical Equipment’s.
Based on Size and Capability
Based on size and capability, computers can be classified into the
following categories.
➢ Micro Computers.
➢ Mini computers.
➢ Mainframe computers.
➢ Super computers.
Microcomputers
➢ A microcomputer is a small and cheap digital computer that is
designed to be used by individuals.
➢ It is built around a microprocessor, a storage unit and an I/O channel.
➢ Other components includes power supply, connecting cables,
keyboard, mouse, printer and scanner.
➢ It also include several software programs such as operating system,
system software and utility software.
➢ Micro computers are available in form of PCs, workstations and
notebook computers.
Mini Computers.
➢ A mini computer was first introduced in the year 1960 by Digital
Equipment Corporation (DEC).
➢ They can handle more data and more input and output than micro
computers.
➢ Mini computers are less powerful than mainframe computers but more
powerful than micro computers.
➢ So it is called midrange computers.
➢ Supports dozens to hundreds of users at once- Multi-user system.
➢ Multi-Tasking – Can run several programs simultaneously.
Examples.
PDP-11 by DEC
VAX Series by DEC
IBM system/32, system/36.
Honeywell level 6.
Mainframe Computers
➢ A mainframe computer is a very large computer that is employed by
large business organizations for handling major applications, such as
financial transaction processing, Enterprise Resource Planning
(ERP), industry and consumer statistics, and census.
➢ They are capable of handling almost millions of records per second.
➢ These computers are bigger and more expensive than other
computers.
➢ The different manufacturers of mainframe computers are IBM,
Amdahl, Hitachi, etc.
➢ Examples of mainframe computers are IBM 3000, VAX 8000 and
CDC 6600.
➢ Therefore, the mainframe computers are also known as super servers
or database servers.
Super computers
A super computer is the fastest computer that can perform complex
operations at a very high speed.
The super computers were first presented in the year 1960 at Control
Data Corporation (CDC).
They are more expensive than the other categories of computers.
Designed to execute complex calculations.
Some of the manufacturers of super computers are IBM, Silicon
Graphics, Intel, etc.
Examples of Super Computers are CRAY 3, Cyber 205, NEC SX-3 and
PARAM from India.
Applications
• Weather forecasting
• Animated graphics
• Fluid mechanics
• Nuclear energy research
• Petroleum exploration