DATABASE
DATABASE
[email protected]
GOVERNMENT POSTGRADUATE
COLLEGE 1
JHANG
Department of Computer Science
BASIC CONCEPTS OF
COMPUTER SYSTEM
INTRODUCTION
A computer is a programmable machine designed to perform
arithmetic and logical operations automatically and sequentially on
the input given by the user
and gives the desired
output after processing.
Computer components are
divided into two major
categories namely
hardware and software.
Hardware is the machine
itself and its connected
devices such as monitor,
keyboard, mouse etc.
Software are the set of programs that make use of hardware for
performing various functions.
OBJECTIVES
After going through this lesson you would be able to:
Familiarize yourself with characteristics of computers
Identify the basic components of a computer
Explain the importance of various units of a computer
Differentiate between system software and application
software
Explain the importance of operating system
Get acquainted with open source
Appreciate the need of computer security
CHARACTERISTICS OF COMPUTERS
The characteristics of computers that have made them so
powerful and universally useful are speed, accuracy, diligence,
versatility and storage capacity. Let us discuss them briefly.
SPEED
GOVERNMENT POSTGRADUATE
COLLEGE 2
JHANG
Department of Computer Science
Computers work at an incredible speed. A powerful computer is
capable of performing about 3-4 million simple instructions per
second.
ACCURACY
In addition to being fast, computers are also accurate. Errors that
may occur can almost always be attributed to human error
(inaccurate data, poorly designed system or faulty
instructions/programs written by the programmer)
DILIGENCE
Unlike human beings, computers are highly consistent. They do
not suffer from human traits of boredom and tiredness resulting in
lack of concentration. Computers, therefore, are better than human
beings in performing voluminous and repetitive jobs.
VERSATILITY
Computers are versatile machines and are capable of
performing any task as long as it can be broken down into a series
of logical steps. The presence of computers can be seen in almost
every sphere – Railway/Air reservation, Banks, Hotels, Weather
forecasting and many more.
STORAGE CAPACITY
Today’s computers can store large volumes of data. A piece of
information once recorded (or stored) in the computer, can never
be forgotten and can be retrieved almost instantaneously.
------------------------------------------------------------------------------------
COMPUTER ORGANIZATION
A computer system consists of mainly four basic units; namely
input unit, storage unit, central processing unit and output unit.
Central Processing unit further includes Arithmetic logic unit and
control unit. A computer performs five major operations or functions
irrespective of its size and make. These are:
it accepts data or instructions as input,
it stores data and instruction
it processes data as per the instructions,
it controls all operations inside a computer, and
it gives results in the form of output.
FUNCTIONAL UNITS:
Input Unit: This unit is used for entering data and programs into
the computer system by the user for processing.
–
GOVERNMENT POSTGRADUATE
COLLEGE 3
JHANG
Department of Computer Science
Storage Unit: The storage unit is used for storing data and
instructions before and after processing.
Output Unit: The output unit is used for storing the result as output
produced by the computer after processing.
MEMORY
Computer’s memory can be classified into two types; Primary
Memory and Secondary Memory. Primary Memory can be further
classified as RAM and ROM.
RAM or Random Access Memory
is the unit in a computer system. It
is the place in a computer where
GOVERNMENT POSTGRADUATE
COLLEGE 4
JHANG
Department of Computer Science
the operating system, application programs and the data in current
use are kept temporarily so that they can be accessed by the
computer’s processor. It is said to be ‘volatile’ since its contents are
accessible only as long as the computer is on. The contents of RAM
are no more available once the computer is turned off .
JHANG
Department of Computer Science
programs are saved. These disks have storage capacities ranging
from 1GB to 80 GB and more. Hard disks are rewritable.
COMPACT DISK
Compact Disk (CD) is portable disk having data storage capacity
between 650-700 MB. It can hold large amount of information such
as music, full-motion videos, and text etc. CDs can be either read
only or read write type.
DIGITAL VIDEO DISK
Digital Video Disk (DVD) is similar to a CD but has larger
storage capacity and enormous clarity. Depending upon the disk
type it can store several Gigabytes of data. DVDs are primarily used
to store music or movies and can be played back on your television
or the computer too. These are not rewritable.
---------------------------------------------------------------------------------
Input / Output Devices
These devices are used to enter information and instructions
into a computer for storage or processing and to deliver the
processed data to a user. Input/Output devices are required for
users to communicate with the computer. In simple terms, input
devices bring information INTO the computer and output devices
bring information OUT of a computer system. These input/output
devices are also known as peripherals since they surround the CPU
and memory of a computer system.
INPUT DEVICES
An input device is any device that provides input to a computer.
There are many input devices, but the two most common ones are
a keyboard and mouse. Every key you press on the keyboard and
every movement or click you make with the mouse sends a specific
input signal to the computer.
JHANG
Department of Computer Science
JHANG
Department of Computer Science
particles of magnetic material. This device particularly finds
applications in banking industry.
---------------------------------------------------------------------------------------------------
------
OUTPUT DEVICES
Output device receives information from the CPU and presents
it to the user in the desired from. The processed data, stored in the
memory of the computer is sent to the output unit, which then
converts it into a form that can be understood by the user. The
output is usually produced in one of the two ways – on the display
device, or on paper (hard copy).
JHANG
Department of Computer Science
-------------------------------------------------------------------------------------------------------------
PRINTER
Printers are used to produce paper (commonly known as
hardcopy) output. Based on the technology used, they can be
classified as Impact or Non-impact printers.
PLOTTER
Plotters are used to print graphical output on paper. It interprets
computer commands and makes line drawings on paper using multi-
JHANG
Department of Computer Science
------------------------------------------------------------------------------------------------
--------COMPUTER SOFTWARE
Computer software is the set of programs that makes the
hardware perform a set of tasks in particular order. Hardware and
software are complimentary to each other. Both have to work
together to produce meaningful results. Computer software is
classified into two broad categories; system software and application
software.
JHANG
Department of Computer Science
MACHINE LANGUAGE
Machine language or machine code is the native language
directly understood by the computer’s central processing unit or
CPU. This type of computer language is not easy to understand, as it
only uses a binary system, an element of notations containing only a
series of numbers consisting of one and zero, to produce commands.
ASSEMBLY LEVEL LANGUAGE
Assembly Level Language is a set of codes that can run directly
on the computer’s processor. This type of language is most
appropriate in writing operating systems and maintaining desktop
applications. With the assembly level language, it is easier for a
programmer to define commands. It is easier to understand and use
as compared to machine language.
High Level Language
High Level Languages are user-friendly languages which are
similar to English with vocabulary of words and symbols. These are
GOVERNMENT POSTGRADUATE
COLLEGE 11
JHANG
Department of Computer Science
easier to learn and require less time to write. They are problem
oriented rather than ‘machine’ based.
Program written in a high-level language can be translated into many
machine languages and therefore can run on any computer for which
there exists an appropriate translator.
---------------------------------------------------------------------------------------------
Compiler & Interpreter
These are the programs that execute instructions written in a
high-level language. There are two ways to run programs written in a
high-level language. The most common is to compile the program;
the other method is to pass the program through an interpreter.
Compiler
A compiler is a special program that processes statements
written in a particular programming language called as source code
and converts them into machine language or “machine code” that a
computer’s processor uses.
Interpreter
An interpreter translates high-level instructions into an
intermediate form, which it then executes. Compiled programs
generally run faster than interpreted programs. The advantage of an
interpreter, however, is that it does not need to go through the
compilation stage during which machine instructions are generated.
This process can be time-consuming if the program is long.
GOVERNMENT POSTGRADUATE
COLLEGE 12
JHANG
Department of Computer Science
OPERATING SYSTEM
An operating system is a software component of a computer
system that is responsible for the management of various activities of
the computer and the sharing of computer resources. It hosts several
applications that run on a computer and handles the operations of
computer hardware. Users and application programs access the
services offered by the operating systems, by means of system calls
and application programming interfaces. Users interact with a
computer operating system through Command Line Interfaces (CLIs)
or Graphical User Interfaces known as GUIs. In short, an operating
system enables user interaction with computer systems by acting as
an interface between users or application programs and the computer
GOVERNMENT POSTGRADUATE
COLLEGE 13
JHANG
Department of Computer Science
hardware. Some of the common operating systems are LINUX,
Windows, etc.
SYED MUHAMMAD
SALEEM RAZA
ASSISTANT PROFESSOR (Comp.Sc)