Lecture 02
Lecture 02
OF
COMPUTER
Hardware Software
Hardware is further divided into four Software is further divided into two main categories:
main categories: Application Software
Input Devices System Software
Output Devices
Secondary Storage Devices
Internal Components
Hardware can be seen and touch as it is a The software can be seen but cannot be touched as it
physical, electronic device. is virtual, not physical.
Examples of hardware are RAM, ROM, Examples of software are Google Chrome, MySQL,
Printer, Monitor, Mouse, Hard disk and MS Word, Excel, PowerPoint, Notepad, Photoshop and
more. more.
System Software Application software
The programs that allow a computer to Software is the type of software which runs as per
operate are collectively referred to as system user request. It runs on the platform which is
software provide by system software.
Low level languages are used to write the High level languages are used to write the
system software. application software.
The main system software is the operating There are also application programs that help
system, which starts up the computer and users write their own programs in a form the
controls its operation. Windows, Mac OS, and computer can understand using a programming
Linux language like BASIC, Visual Basic, COBOL, C++,
Java, or Python.
Operating System
An Operating System (OS) is a software that acts as an interface between computer hardware
components and the user.
Memory management:- Memory management module performs the task of allocation and de-
File management:- It manages all the file-related activities such as organization storage, retrieval,
Device Management: Device management keeps tracks of all devices. This module also
responsible for this task is known as the I/O controller. It also performs the task of allocation and
I/O System Management: One of the main objects of any OS is to hide the feature of that
primary storage, secondary storage, and cache storage. Instructions and data must be stored in
Security:- Security module protects the data and information of a computer system against
Command interpretation: This module is interpreting commands given by the and acting system
Networking: A distributed system is a group of processors which do not share memory, hardware
devices, or a clock. The processors communicate with one another through the network.
Job accounting: Keeping track of time & resource used by various job and users.
system is used in personal computers. Example for this type of operating system is DOS.
Multiuser operating system: This operating system controls more than one user at a time. This operating
system is used in networking environment. Example for this type of operating system is UNIX and Window
NT.
Graphical user interface operating system: It has the capability of using graphical devices such as mouse.
Examples for this type of operating system are Windows XP and Windows 2000.
Multiprocessing operating system: It allows more than one processor for simultaneous processing.
Examples for this type of operating system are UNIX and Windows NT.
Multitasking Operating System: It allows multiple software processes to be run at the same time. Examples
for this type of operating system are Windows 98, Windows 2000 and Windows XP.
Multithreading operating system: It allows different part of a software program to run in parallel. Examples
for this type of operating system are Windows 98, Windows 2000 and Windows NT.
Components of Computer System
Input Unit: These components help users enter data and commands into a computer system.
Data can be in the form of numbers, words, actions, commands, etc. The main function of input
devices is to direct commands and data into computers. Computers then use their CPU to
process this data and produce output. For example, Keyboard, Mouse etc.
Central processing unit : After receiving data and commands from users, a computer system
now has to process it according to the instructions provided.
Memory unit
Control Unit
Output unit : After processing of data, it is converted into a format which humans can
understand. After conversion, the output units display this data to users. Examples of output
devices include monitors, screens, printers and speakers.
Input Devices: An input device is any device that provides input to a computer.
Keyboard
Mouse
Joy Stick
Light pen
Track Ball
Scanner
Graphic Tablet
Microphone
Magnetic Ink Card Reader(MICR)
Bar Code Reader
Output devices: Bring information OUT of a computer system.
Monitors
Graphic Plotter
Printer
Central Processing Unit (CPU)
Memory Unit: Once a user enters data using input devices, the computer system stores this data in its
memory unit. This data will now remain here until other components of CPU process it. The memory unit
uses a set of pre-programmed instructions to further transmit this data to other parts of the CPU.
Arithmetic and Logic Unit: Actual data processing occurs in this unit. All arithmetic and logical operations
such as addition, subtraction, comparison, etc. are performed here. It has many sub units. They are
Registers: It is used for temporary storage. Some of the registers are instruction registers,
Program Counter: It is used to store the address of the instruction that is to be executed.
Control Unit: This unit is the backbone of computers. It is responsible for coordinating tasks between all
components of a computer system. The control unit collects data from input units and sends it to processing
units depending on its nature. Finally, it also further transmits processed data to output units for users.
BASIS FOR COMPARISON PRIMARY MEMORY SECONDARY MEMORY
Access Speed Accessing data from primary memory Accessing data from secondary
is faster. memory is slower.
Size The computer has a small primary The computer has a larger secondary
memory. memory.
Definition RAM stands for Random Access Memory. ROM stands for Read Only Memory.
1
Data Retention RAM data is volatile. Data is present till power supply ROM data is permanent. Data remains even after
2
is present. power supply is not present.
Data Access RAM data can be read, erased or modified. ROM data is readonly.
3
Usage RAM is used to store data that CPU needs for current ROM is used to store data that in needed to bootstrap
4 instruction processing. the computer.
5 Speed RAM speed is quite high. ROM speed is slower than RAM.
CPU Access CPU can access data stored on RAM. Data to be copied from ROM to RAM so that CPU can
6
access its data.
Capacity RAM memory is large and high capacity. ROM is generally small and of low capacity.
7
Usage RAM is used as CPU Cache, Primary Memory. ROM is used as firmware by microcontrollers.
8