CSC 227 Module 2
CSC 227 Module 2
The hardware refers to the physical components and the devices which make up the
visible computer. It can be divided into two: Central Processing Unit (CPU) and the
Peripherals. The CPU is responsible for all processing that the computer does while the
peripherals are responsible for feeding data into the system and for collecting information from
the system.
The CPU consists of Main storage, ALU and Control Unit. The main storage is used
for storing data to be processed as well as the instructions for processing them. The ALU is the
unit for arithmetic and logical operations. The control unit ensures the smooth operation of the
other hardware units. It fetches instruction, decode (interprets) the instruction and issues
commands to the units responsible for executing the instructions.
The peripherals are in three categories: Input devices, Output devices and auxiliary storage
devices.
The input device is used for supplying data and instructions to the computer. Examples
are terminal Keyboard, Mouse, Joystick, Microphone, Scanner, Webcam, and so on.
Output device is used for obtaining result (information) from the computer. Examples are
Printers, Video Display Unit (VDU), loudspeaker, projector, and so on.
Auxiliary Storage Devices are used for storing information on a long-term basis. Examples are
hard disk, flash disk, magnetic tape, memory card, and soon on.
A simple model of the hardware part of a computer system is shown below
Peripherals
Input
Unit Auxiliary Output
Storage Unit
Unit
Main Memory
Central
Processing Arithmetic
Unit and Logic
Unit
Control Unit
It is the software that enables the hardware to be put into effective use. There are two main
categories of software – System software and Application software.
2.3 SYSTEMS SOFTWARE
System software are programs commonly written by computer manufacturers, which have direct
effect on the control, performance and ease of usage of the computer system. Examples are
Operating System, Language Translators, Utilities and Service Programs, and Database
Management Systems (DBMS).
Operating System is a collection of program modules which form an interface between the
computer hardware and the computer user. Its main function is to ensure a judicious and
efficient utilization of all the system resources (such as the processor, memory, peripherals and
other system data) as well as to provide programming convenience for the user. Examples are
Unix, Linux, Windows, Macintosh, and Disk Operating system.
Interpreter: This is a program that converts program written in high level language
(HLL) into its machine language (ML) equivalent one line at a time. Language like
BASIC is normally interpreted.
Compiler: This is a program that translates program written in high level language
(HLL) into machine language (ML) equivalent all at once. Compilers are normally called
by the names of the high level language they translate. For instance, we have COBOL
compiler, FORTRAN compiler etc.
Preprocessor: This is a language translator that takes a program in one HLL and
produces equivalent program in another HLL. For example, there are many preprocessors
to map structured version of FORTRAN into conventional FORTRAN.
Database Management System (DBMS) is a complex program that is used for creation,
storage, retrieving, securing and maintenance of a database. A database can be described as an
organized collection of related data relevant to the operations of a particular organization. The
data are stored usually in a central location and can be accessed by different authorized users.
Linker is a program that takes several object files and libraries as input and produces one
executable object file.
Loader is a program that places an executable object file into memory and makes them ready for
execution. Both linker and loader are provided by the operating system.