2. Introduction to Computer System
2. Introduction to Computer System
2. Introduction to Computer System
computer system
What is Computer?
• The word computer comes from the word
“compute”, which means, “to calculate”.
• A computer is an electronic device that can
perform arithmetic operations at high speed,
and it can process data, pictures, sound and
graphics.
• It can solve highly complicated problems quickly
and accurately.
Advantages of Computer
• Speed
• It can calculate millions of expression within a
fraction of second.
• Storage
• It can store large amount of data using
various storage devices.
• Accuracy
• It can perform the computations at very high
speed without any mistake.
Advantages of Computer
• Reliability
• The information stored in computer is available after
years in same form. It works 24 hours without any
problem as it does not feel tiredness.
• Automation
• Once the task is created in computer, it can be
repeatedly performed again by a single click whenever
we want.
• Multitasking
• It can perform more than one tasks/operations
simultaneously.
Disadvantages of Computer
• Lake of intelligence
• It can not think while doing work.
• It does not have natural intelligence.
• It can not think about properness, correctness or
effect of work it is doing.
• Unable to correct mistake
• It can not correct mistake by itself.
• So if we provide wrong or incorrect data then it
produces wrong result or perform wrong
calculations.
Block Diagram of Computer
• It is a pictorial representation of a
computer which shows how it works
inside.
• It shows how computer works from
feeding/inputting the data to getting the
result.
Block Diagram of Computer
CENTRAL
PROCESSING UNIT
R
CONTROL UNIT
OL UN
INPUT SECTION AIRHTMETIC AND OUTPUT SECTION
(Mouse, Keyboard LOGICAL UNITIT (Monitor, Printer
etc…) etc…)
PRIMARY MEMORYIT
…)
SECONDARY MEMORY
(Hard disk, Pen drive etc…)
Block diagram of computer
(Input Section)
• The devices used to enter data into computer system
are called input devices.
• It converts human understandable input to
computer controllable data.
• CPU accepts information from user through input
devices.
• Examples: Mouse, Keyboard, Touch screen, Joystick
etc…
Block diagram of computer
(Output Section)
• The devices used to send the information to the
outside world from the computer is called
output devices.
• It converts data stored in 1s and 0s in computer
to human understandable information.
• Examples: Monitor, Printer, Plotter, Speakers
etc…
Block diagram of computer
(Central Processing Unit (CPU))
• It contains electronics circuit that processes the data
based on instructions.
• It also controls the flow of data in the system.
• It is also known as brain of the computer.
• CPU consists of,
• Arithmetic Logic Unit (ALU)
• It performs all arithmetic calculations such as
add, subtract, multiply, compare, etc. and takes
logical decision.
• It takes data from memory unit and returns data
to memory unit, generally primary memory
(RAM).
• Control Unit (CU)
•It controls all other units in the computer
system. It manages all operations such as
reads instruction and data from memory.
• Primary Memory
•It is also known as main memory.
•The processor or the CPU directly stores
and retrieves information from it.
•Generally, currently executing programs
and data are stored in primary memory.
Block diagram of computer
(Secondary Memory)
• Secondary memory is also called Auxiliary memory or
External memory.
• It is Used to store data permanently.
• It can be modified easily.
• It can store large data compared to primary memory.
Now days, it is available in Terabytes.
• Examples: Hard disk, Floppy disk, CD, DVD, Pen drive,
etc…
What is Hardware?
• Hardware refers to the physical parts of a
computer.
• The term hardware also refers to mechanical
device that makes up computer.
• User can see and touch the hardware
components.
• Examples of hardware are CPU, keyboard,
mouse, hard disk, etc…
What is Software?
• A set of instruction in a logical order
to perform a meaningful task is called
program and a set of program is called
software.
• It tell the hardware how to perform a
task.
• Types of software
• System software
• It is designed to operate the computer hardware
efficiently.
• Provides and maintains a platform for running
application software.
• Examples: Windows, Linux, Unix etc.
• Application software
• It is designed to help the user to perform general task
such as word processing, web browser etc.
• Examples: Microsoft Word, Excel, PowerPoint etc.
Categories of System Software
• Operating system
• It controls hardware as well as interacts with users, and provides
different services to user.
• It is a bridge between computer hardware and user.
• Examples: Windows XP, Linux, UNIX, etc…
• System support software
• It makes working of hardware more efficiently.
• For example drivers of the I/O devices or routine for socket
programming, etc…
• System development software
• It provides programming development environment to
programmers.
• Example: Editor, pre-processor, compiler, interpreter, loader, etc…
Categories of Application Software
• General purpose software
• It is used widely by many people for some
common task, like word processing, web browser,
excel, etc…
• It is designed on vast concept so many people can
use it.
• Special purpose software
• It is used by limited people for some specific task
like accounting software, tax calculation software,
ticket booking software, banking software etc…
• It is designed as per user’s special requirement.
Compiler, Interpreter and
Assembler
• Compiler translates program of higher level
language to machine language. It converts
whole program at a time.
• Interpreter translates program of higher level
language to machine language. It converts
program line by line.
• Assembler translates program of assembly
language to machine language.
Types of Computer Languages
• Machine level language OR Low level language
• It is language of 0’s and 1’s.
• Computer directly understand this language.
• Assembly language
• It uses short descriptive words (MNEMONIC) to represent each of
the machine language instructions.
• It requires a translator knows as assembler to convert assembly
language into machine language so that it can be understood by
the computer.
• Examples: 8085 Instruction set
• Higher level language
• It is a machine independent language.
• We can write programs in English like manner and therefore easier
to learn and use.
• Examples: C, C++, JAVA etc…
What is an Operating System?
• OS is a resource allocator
• Manages all resources
• Decides between conflicting requests for
efficient and fair resource use
• OS is a control program
• Controls execution of programs to prevent
errors and improper use of the computer
Operating System Definition (Cont.)
• The basic unit of computer storage is the bit. A bit can contain one
of two values, 0 and 1. All other storage in a computer is based on
collections of bits.
• Given enough bits, it is amazing how many things a computer can
represent: numbers, letters, images, movies, sounds, documents,
and programs, to name a few.
• A byte is 8 bits, and on most computers it is the smallest
convenient chunk of storage. For example, most computers don’t
have an instruction to move a bit but do have one to move a byte.
• A less common term is word, which is a given computer
architecture’s native unit of data.
• A word is made up of one or more bytes. For example, a computer
that has 64-bit registers and 64-bit memory addressing typically
has 64-bit (8-byte) words.
• A computer executes many operations in its native word size
rather than a byte at a time.
Computer storage, along with most computer
throughput, is generally measured and
manipulated in bytes and collections of bytes.
A kilobyte, or KB, is 1,024 bytes
a megabyte, or MB, is 1,0242 bytes
a gigabyte, or GB, is 1,0243 bytes
a terabyte, or TB, is 1,0244 bytes
a petabyte, or PB, is 1,0245 bytes