I BCA FIT _unit 1
I BCA FIT _unit 1
Generations of computer
These first generation computers relied on ‘machine language’ (which is the most fundamental
programming language that can be understood by computers). These computers were limited to solving
one problem at a time. Input was predicated on punched cards and paper tape. Output emerged on
print-outs. The two eminent machines of this era were the UNIVAC and ENIAC machines – the UNIVAC is
the first ever commercial computer which was purchased in 1951 by a business named as the US Census
Bureau.
The language emerged from strange binary language to symbolic (‘assembly’) languages. This meant
programmers could discover instructions in words. Meanwhile during the same time high caliber
programming languages were being developed (early versions of COBOL and FORTRAN). Transistor-
driven machines were the first computers to store instructions into their recollections, peregrinating
from magnetic drum to magnetic core ‘technology’. The anticipatory versions of these machines were
created for the atomic energy industry.
As a result of these advances which again made machines more reasonable and more tiny, a brand new
group of users emerged during the ‘60s.
The incremented power of these small computers denoted they could be linked, establishing networks.
Which eventually led to the expansion, birth and rapid evolution of the Internet. Other primary
advances during this period have been the Graphical user interface (GUI), the mouse and more of late
the startling advances in laptop capability and hand-held contrivances.
Data:
Data are raw facts, events, numbers and transactions, which have been collected, recorded,
stored but are not yet processed. Data consist of numbers and characters (i.e. alphabets and special
symbols) which are used to record facts and events about activities occurring in an environment.
Information:
Information is processed data. It is obtained after subjecting data to a series of processing operations
which convert related groups of data (raw facts) into a meaningful and coherent form. Processing
could be in the form of addition, subtracting, comparison, sorting, rearrangement etc. This makes
information useful and meaningful. In other words, information could be defined as the desired form to
which data is finally transformed after undergoing a series of processing.
2. Components of COMPUTER.
A simple computer system comprises the basic components like Input Devices, CPU (Central
Processing Unit) and Output Devices as under:
Input Devices:
The devices which are used to entered data in the computer systems are known as input
devices.
Keyboard, mouse, scanner, mike, light pen etc are example of input devices.
Output Devices:
The devices which display the result generated by the computer are known as
output devices.
Monitor, printer, plotter, speaker etc are the example of output devices.
A. Arithmetic and Logic Unit (ALU): The ALU, as its name suggests performs mathematical calculations
and takes logical decisions. Arithmetic calculations include addition, subtraction, multiplication and
division. Logical decisions involve the comparison of two data items to see which one is larger or
smaller or equal.
Arithmetic Logical Unit is the main component of the CPU
It is the fundamental building block of the CPU.
Arithmetic and Logical Unit is a digital circuit that is used to perform arithmetic and logical
operations.
B. Control Unit: The Control unit coordinates and controls the data flow in and out of the CPU, and
also controls all the operations of ALU, memory registers and also input/output units. It is also
responsible for carrying out all the instructions stored in the program. It decodes the fetched
instruction, interprets it and sends control signals to input/output devices until the required operation
is done properly by ALU and memory.
The Control Unit is a component of the central processing unit of a computer that directs the
operation of the processor.
It instructs the computer’s memory, arithmetic and logic unit, and input and output devices on how
to respond to the processor’s instructions.
In order to execute the instructions, the components of a computer receive signals from the control
unit.
It is also called the central nervous system or brain of the computer.
C. Memory Registers: A register is a temporary unit of memory in the CPU. These are used to store
the data, which is directly used by the processor. Registers can be of different sizes(16 bit, 32 bit, 64
bit and so on) and each register inside the CPU has a specific function, like storing data, storing an
instruction, storing address of a location in memory etc. The user registers can be used by an
assembly language programmer for storing operands, intermediate results etc. Accumulator (ACC) is
the main register in the ALU and contains one of the operands of an operation to be performed in the
ALU.
Memory attached to the CPU is used for the storage of data and instructions, and is called internal
memory The internal memory is divided into many storage locations, each of which can store data or
instructions. Each memory location is of the same size and has an address. With the help of the
address, the computer can read any memory location easily without having to search the entire
memory. When a program is executed, its data is copied to the internal memory and stored in the
memory till the end of the execution. The internal memory is also called the Primary memory or Main
memory. This memory is also called RAM, i.e., Random Access Memory. The time of access of data is
independent of its location in memory, therefore, this memory is also called Random Access memory
(RAM).
Memory Unit is the primary storage of the computer.
It stores both data and instructions.
Data and instructions are stored permanently in this unit so that they are available whenever
required
Software
In a computer system, the software is basically a set of instructions or commands that tell a computer
what to do. In other words, the software is a computer program that provides a set of instructions to
execute a user’s commands and tell the computer what to do. For example like MS-Word, MS-
Excel, PowerPoint, etc.
Types of Software
It is a collection of data that is given to the computer to complete a particular task. The chart below
describes the types of software:
1. System Software
Operating System
Language Processor
Device Driver
2. Application Software
General Purpose Software
Customize Software
Utility Software
System Software
System software is software that directly operates the computer hardware and provides the basic
functionality to the users as well as to the other software to operate smoothly. Or in other words,
system software basically controls a computer’s internal functioning and also controls hardware
devices such as monitors, printers, and storage devices, etc. It is like an interface between hardware
and user applications, it helps them to communicate with each other because hardware understands
machine language(i.e. 1 or 0) whereas user applications are work in human-readable languages like
English, Hindi, German, etc. so system software converts the human-readable language into machine
language and vice versa.
Types of System Software
It has two subtypes which are:
1. Operating System: It is the main program of a computer system. When the computer system ON it
is the first software that loads into the computer’s memory. Basically, it manages all the resources
such as computer memory, CPU, printer, hard disk, etc., and provides an interface to the user,
which helps the user to interact with the computer system. It also provides various services to
other computer software. Examples of operating systems are Linux, Apple macOS, Microsoft
Windows, etc.
2. Language Processor: As we know that system software converts the human-readable language into
a machine language and vice versa. So, the conversion is done by the language processor. It
converts programs written in high-level programming languages like Java, C, C++, Python,
etc(known as source code), into sets of instructions that are easily readable by machines(known as
object code or machine code).
3. Device Driver: A device driver is a program or software that controls a device and helps that device
to perform its functions. Every device like a printer, mouse, modem, etc. needs a driver to connect
with the computer system eternally. So, when you connect a new device with your computer
system, first you need to install the driver of that device so that your operating system knows how
to control or manage that device.
Application Software
Software that performs special functions or provides functions that are much more than the basic
operation of the computer is known as application software. Or in other words, application software
is designed to perform a specific task for end-users. It is a product or a program that is designed only
to fulfill end-users’ requirements. It includes word processors, spreadsheets, database management,
inventory, payroll programs, etc.
An important feature of application software is it performs more specialized tasks like word
processing, spreadsheets, email, etc.
Mostly, the size of the software is big, so it requires more storage space.
Application software is more interactive for the users, so it is easy to use and design.
The application software is easy to design and understand.
Application software is written in a high-level language in general.
Less interactive for the users. More interactive for the users.
Hardware :
Computer hardware is a physical device of computers that we can see and touch. For
e.g. Monitor, Central Processing Unit, Mouse, Joystick, etc. Using these devices, we can control
computer operations like input and output.
These hardware components are further divided into the following categories, which are:
1. Input Devices
2. Output Devices
1. Input Devices
Input devices are those devices with the help of which the user interacts with the computer. Or, In
other words, with the help of input devices, the user enters the data or information into the
computer. This information or data is accepted by the input devices and converted into a computer-
acceptable format, which is further sent to the computer system for processing.
Now we discuss some input devices:
Keyboard: It is the most common and main input device for computers. The data is inputted by
typing on the keyboard. It consists of 104 keys in total. It contains numeric keys, alphabet keys, and
different function keys as well. Earlier, it was connected to the computer via cable, now as
technology has advanced, you can connect a keyboard using Bluetooth.
Mouse: A mouse is a kind of pointing device which is rolled over to control the cursor on the screen
and it has functional keys like left, middle, and right buttons. Using these functional keys, on by the
click of which an object is selected or to open a file by just a click of a mouse. It also consists of a
sensor inside which notifies its speed to the computer and according to which the cursor is moved
on the screen.
Scanner: As the name suggests, it scans images, documents, etc., and converts them into digital
form and that can be further edited and used. It works just like a Xerox machine.
Track Ball: It is a device much like an upside-down mouse. It does not use much space for
movement like a mouse. As the trackball remains stationary and the user moves the ball in various
directions, it affects the screen movements directly.
Light Pen: It is a light-sensitive device and it is touched to the CRT screen where it can detect, a
raster on the screen as it passes by and, with the help of this user can draw anything like lines,
figures, or any objects.
Microphone: It is a kind of voice input system that can be attached to a computer system to record
sounds. It converts human speech or voice into electrical signals. This electrical signal is processed
by the computer and the word is recognized.
Optical Character Reader: It is used to detect alphanumeric characters that are written or printed
on paper using a low-frequency light source. This light is absorbed by the dark areas and reflected
by the light areas, now this reflected light is received by the photocells. It is like a scanner.
Bar Code Reader: It is used to read bar codes and convert them into electric pulse which will
further processed by the computer. Here, the barcode is data that is coded into white and black
lines(or light and dark lines).
2. Output Devices
These are the devices that are used to display the output of any task given to the computer in human-
readable form.
Now we discuss some output devices:
Monitor: The monitor is the main output device. It is also called VDU(visual display unit) and it
looks like a TV screen. The Monitor displays the information from the computer. It is used to display
text, video, images, etc.
Printer: A printer is an output device that transfers data from the computer in a printed format by
using text or images on paper. There are both colored and black & white printers. Further, there are
also different types of printers, like Laser Printer, Dot-matrix printers, and Inkjet printers.
Plotter: It is similar to a printer but potters are large in size. A plotter is used to generate large
drawings, architectural blueprints, etc. on paper and these are high-quality images and drawings
and large in size.
Speakers: It is a very common output device and it gives sound as an output. Speaker is generally
used to play music or anything having sound.
Advantages of RTOS
Maximum Consumption: Maximum utilization of devices and systems, thus more output
from all the resources.
Task Shifting: The time assigned for shifting tasks in these systems is very less. For example,
in older systems, it takes about 10 microseconds in shifting from one task to another, and in
the latest systems, it takes 3 microseconds.
Focus on Application: Focus on running applications and less importance on applications
that are in the queue.
Real-time operating system in the embedded system: Since the size of programs is small,
RTOS can also be used in embedded systems like in transport and others.
Error Free: These types of systems are error-free.
Memory Allocation: Memory allocation is best managed in these types of systems.
Disadvantages of RTOS
Limited Tasks: Very few tasks run at the same time and their concentration is very less on a
few applications to avoid errors.
Use heavy system resources: Sometimes the system resources are not so good and they
are expensive as well.
Complex Algorithms: The algorithms are very complex and difficult for the designer to
write on.
Device driver and interrupt signals: It needs specific device drivers and interrupts signal to
respond earliest to interrupts.
Thread Priority: It is not good to set thread priority as these systems are very less prone to
switching tasks.
Examples of Real-Time Operating Systems are Scientific experiments, medical imaging
systems, industrial control systems, weapon systems, robots, air traffic control systems, etc.
3. Flash Disk
A storage module made of flash memory chips. A Flash disks have no mechanical platters or
access arms, but the term "disk" is used because the data are accessed as if they were on a
hard drive. The disk storage structure is emulated.