Professional Documents
Culture Documents
and fundamentals of C
Programming
Introduction to components of
computer systems
switches
◼ Since: transistors, integrated circuits
2
Charles Babbage
8
Types of computers:
◼ minicomputer: a multi-user computer capable of
supporting from 10 to hundreds of users at the same
time.
◼ mainframe: a powerful multi-user computer capable
of supporting many hundreds or thousands of users
at the same time.
◼ supercomputer: an extremely fast computer that
can perform hundreds of millions of instructions per
second.
9
Types of Computers
Servers
organization’s files
◼ A printer server handles all
print requests.
Main Frame
Output device
Output device
Input device
Input device
Main Components of a
Computer System
◼ Processor (CPU)
◼ Runs program instructions
◼ Main Memory
◼ Storage for running programs and current data
◼ Secondary Storage
◼ Long-term program & data storage (hard disk, CD, etc)
◼ Input Devices
◼ Communication from the user to the computer(e.g.
keyboard, mouse)
◼ Output Devices
◼ Communication from the computer to the user (e.g.
monitor, printer, speakers)
COMPUTER SYSTEM
◼ A computer system is one that is able to take a set
of inputs, process them and create a set of outputs.
◼ Computer system have two parts:
COMPUTER
SYSTEM
HARDWA SOFTWAR
RE E
SOFTWARE AND HARDWARE
Software
◼ Software refers to the programs required to operate a computer.
1. System software
2. Application software
Hardware
◼ Hardware refers to any physical component of computer.
◼ For example, CPU, monitor (VDU), keyboard, hard disk, floppy
disk, printer etc. are physical components and, thus, are all
hardware
ARCHITECTURE OF A
COMPUTER SYSTEM
COMPONENTS OF COMPUTER
SYSTEM
A computer system has the following main components:
◼ Input Unit
◼ Memory Unit
◼ Output Unit
INPUT DEVICES
◼ Following are few of the important input devices which are used in a
computer:
➢ Keyboard
➢ Mouse
➢ Joy stick
➢ Light pen
➢ Track ball
➢ Scanner
➢ Microphone
➢ Magnetic ink card reader(MICR)
➢ Optical character reader(OCR)
➢ Bar code reader
➢ Optical mark reader(OMR)
The Processor
▪ The processor is the "brain" of the computer system.
▪ Main processor is called the Central Processing Unit (CPU).
▪ A particular computer will have a particular type of
processor, such as a Pentium or a SPARC chip.
▪ Co-processors assist the CPU with some of the processing
functions. Examples:
▪ Math co-processors handle heavy duty math processing
▪ Graphics coprocessors speed up the display of graphics
onto the monitor
CENTRAL PROCESSING UNIT
◼ Control Unit
Performs calculations
Arithmetic / Logic Unit
and decisions
Coordinates
Control Unit processing steps
Small, fast
Registers storage areas for
instructions and
data
Component Interaction
The CPU controls all of the other resources within the system,
in order to accomplish a task.
CHARACTERISTICS of Processor
◼ Secondary Memory
◼ Cache Memory
PRIMARY MEMORY
◼ Primary memory holds only those data and instructions on
which computer is currently working.
◼ It is generally made up of semiconductor device.
◼ These memories are not as fast as registers.
◼ The data and instruction required to be processed reside in
main memory.
◼ It is divided into two subcategories RAM and ROM.
SECONDARY MEMORY
◼ This type of memory is also known as external memory or
non-volatile.
◼ It is slower than main memory.
◼ These are used for storing data/Information permanently.
◼ CPU directly does not access these memories instead they
are accessed via input-output routines.
◼ Contents of secondary memories are first transferred to
main memory, and then CPU can access it.
◼ For example : disk, CD-ROM, DVD etc.
CACHE MEMORY
◼ Cache memory is a very high speed semiconductor
memory which can speed up CPU.
◼ It acts as a buffer between the CPU and main memory.
◼ It is used to hold those parts of data and program which are
most frequently used by CPU.
◼ The parts of data and programs are transferred from disk to
cache memory by operating system, from where CPU can
access them.
Cache Memory
◼ Monitors
◼ Graphic Plotter
◼ Printer
◼ Headphone
◼ Data projector
Motherboard
https://www.youtube.com/watch?v=CAWbcgR2xg
Q&t=13s
C HISTORY 1
▪ C evolved from two previous languages, BCPL (Basic Combined
Programming Language) and B.
▪ BCPL developed in 1967 by Martin Richards as a language for writing
OSes and compilers.
▪ Ken Thompson modeled many features in his language, B, after their
counterparts in BCPL, and used B to create an early versions of UNIX
operating system at bell Laboratories in 1970 on a DEC PDP-7
computer.
▪ Both BCPL and B were typeless languages: the only data type is
machine word and access to other kinds of objects is by special
operators or function calls.
▪ The C language developed from B by Dennis Ritchie at Bell
Laboratories and was originally implemented on a DEC PDP-11
computer in 1972.
▪ It was named C for new language (after B).
▪ Initially, C used widely as the development language of the UNIX OS.
▪ Today, almost all new major OS are written in C including Windows.
www.tenouk.com, © 2/4