Chapter 1 - Computer System
Chapter 1 - Computer System
A computer is an electronic device that can be programmed to accept data (input), process
it, and generate results (output). In today's world, modern computers are electronic
devices that are programmable, accepting raw data as input. They then process this data
output. Computers can also save the output for future use, indicating the presence of
memory. They are capable of processing both numerical and non-numerical calculations.
The word "computer" is derived from the Latin word "computare," which means "to
calculate".
combined with additional hardware and software, it forms a computer system. These
components include a Central Processing Unit (CPU), memory, input/output (I/O) devices,
and storage devices. All these parts function together as a single unit to deliver the
desired output. Computer systems come in various forms and sizes, from high-end
• Input Devices
• Output Devices
• Storage Devices
Hardware and Software
• Hardware refers to the physical components of a computer system that can be seen and
touched. These include input devices, output devices, the CPU, and memory. Examples are
keyboards, mice, monitors, printers, and RAM. Hardware components are divided into
categories like input devices, output devices, storage devices, and internal components.
• Software is a set of recorded instructions and programs that govern the working of the
computer. It consists of instructions and data processed by the computer hardware. Unlike
hardware, software cannot be physically touched or viewed. Its sole purpose is to make
computer hardware useful and operational. Software acts as an interface between human
2. Evolution of Computer
The evolution of computing devices from simple calculators to powerful data processors
has occurred in a relatively short span of time. Initially, computers were very basic,
performed limited tasks, and required significant human involvement and effort. Over
time, they have become highly modern, automated, and integral to our daily lives. This
• Abacus (c. 500 BC): Believed to be the first computer in history, invented by the Chinese.
It was a manual device used for basic arithmetic calculations (addition, subtraction) by
moving beads on rods according to specific rules. It primarily worked with whole numbers.
• Napier's Bones (1617): Invented by John Napier, this manually operated calculator used
nine different ivory sticks marked with numbers for multiplication and division. It was also
the first machine to introduce the use of a decimal point system for calculations.
• Pascaline (1642): Invented by French mathematician and philosopher Blaise Pascal, this
was the first mechanical and automatic calculator. It was a wooden box with rotating gears
and wheels that could perform addition and subtraction quickly. Pascal designed it to help
philosopher Gottfried Wilhelm Leibniz, this device improved upon Pascal's calculator. It
was a digital mechanical calculator that used fluted drums instead of gears, leading to
Charles Babbage: Difference Engine & Analytical Engine (Father of Modern Computers)
• Difference Engine (early 1820s): Designed by Charles Babbage, this was a mechanical
• Analytical Engine (1834): Also developed by Charles Babbage, this was another
mechanical computing machine that used punch cards as input. This machine was a
revolutionary step as it was capable of solving any mathematical problem and storing
• Invented by Herman Hollerith, this mechanical tabulator was based on punch cards. It
could process and record statistics, record, and sort data or information. This machine
was notably used for the US Census in 1890, demonstrating the potential for
capable of solving any problem by executing programs stored on punch cards. It proved
the fundamental limitations of mechanical computation, paving the way for electronic
computers. Alan Turing's work was crucial during World War II for code-breaking, and his
• John Von Neumann introduced the concept of a stored program computer, which allowed
both data and programs to be stored in memory. This architecture consists of a CPU for
arithmetic and logical instructions, memory for data and programs, and I/O devices with
communication channels.
• Mark-1 (1944): Built in partnership between IBM and Harvard, this was the first
programmable digital computer. Its development marked a "new era in the computer
• ENIAC (Electronic Numerical Integrator and Computer): This was the first binary
• First Generation (1940s - 1950s): Based on Vacuum Tubes. They were very large, slow,
generated a lot of heat, consumed much power, and often took up entire rooms.
Input/output was primarily via punch cards. Examples include ENIAC, UNIVAC, and IBM
650.
were smaller, more reliable, faster, and consumed less power than vacuum tubes. Memory
shifted to magnetic cores and magnetic tapes. Assembly language was introduced.
• Third Generation (1960s - 1970s): Marked by Integrated Circuits (ICs). ICs allowed
computer size and increasing speed and efficiency. High-level languages like FORTRAN,
BASIC, Pascal, and COBOL became common. Input/output methods included keyboards
and monitors/printers. Examples: IBM 360/370 and PDP-11. These computers were often
integrated onto a single microchip. This led to the development of personal computers
(PCs). High-level languages like C++, Java, and Python emerged. Networking and the
World Wide Web (WWW) significantly grew during this era. Examples: IBM PC, Apple
Macintosh.
Ultra Large Scale Integration (ULSI). ULSI integrates millions of transistors on a single
chip. These computers are expected to have parallel processing capabilities, understand
natural languages, and exhibit self-learning abilities. They prioritize less power
consumption and heat generation. Examples: Desktops, laptops, smartphones, tablets,
wearable gadgets.
Moore's Law (1965): Intel co-founder Gordon Moore predicted that the number of
transistors on a chip would double approximately every two years, while the costs would
be halved. This prediction has largely held true, driving the exponential growth in
computing power.
Modern Trends:
• Personal Computers (PCs): IBM introduced its first PC for home users in 1981, and Apple
released the Macintosh in 1984. The popularity of PCs surged with the introduction of
• World Wide Web (WWW): Its growth around the 1990s significantly accelerated the mass
• Portable Computing: Laptops made personal computing portable. This was followed by
• Wearable Gadgets: The latest wave includes smartwatches, lenses, headbands, and
headphones.
• Internet of Things (IoT): Smart appliances are becoming part of the IoT, leveraging the
3. Computer Memory
A computer system needs memory to store data and instructions for processing. When we
refer to "memory," we usually mean the main or primary memory. Secondary memory
(storage devices) is used for permanent storage of data, instructions, and results for
future use.
Units of Memory: Computers use binary numbers (0s and 1s) to store and process data.
• Bit (Binary Digit): The basic unit of memory, representing either 0 or 1. It is the smallest
unit of memory.
• Byte: A group of 8 bits. One byte can store a single character, like 'e' or 'A'.
◦ 1 PB (Petabyte) = 1024 TB
◦ 1 EB (Exabyte) = 1024 PB
◦ 1 ZB (Zettabyte) = 1024 EB
◦ 1 YB (Yottabyte) = 1024 ZB
Types of Memory: Computers have two main types of memory: Primary Memory and
Secondary Memory. Cache Memory acts as a bridge between the CPU and primary
memory.
• It is an essential component where programs and data are loaded before processing.
• The CPU directly interacts with primary memory for read/write operations.
▪ Volatile: Data is retained only as long as power is supplied; it is wiped out when power is
▪ Temporary Storage: Used to store data temporarily while the computer is working.
nanoseconds.
▪ S RAM (Static RAM): Faster than D RAM (around 10 nanoseconds) and used for special
applications.
▪ Non-volatile: Contents are not lost even when power is turned off.
▪ Permanent Storage: Used for small but faster permanent storage of contents that are
rarely changed.
▪ Example: The startup program (boot loader) that loads the operating system into primary
• A very high-speed memory placed between the CPU and primary memory.
• Purpose: To speed up CPU operations by storing copies of data from frequently accessed
the cache; otherwise, it accesses primary memory. This mechanism reduces the average
• Purpose: Needed to permanently store data or instructions for future use due to primary
• Characteristics: Non-volatile and has a larger storage capacity than primary memory.
• Cannot be directly accessed by the CPU. Contents must first be loaded into primary
• Examples: Hard Disk Drive (HDD), Solid State Drive (SSD), CD/DVD, Memory Card, Pen
▪ Hard disks have a large storage capacity, typically measured in gigabytes (GB) and
terabytes (TB).
• CD-ROM: Read-only.
▪ Blu-ray Discs: Used for high-definition video and data storage, capable of storing up to
128 GB of data.
▪ SSDs (Solid State Drives): Support very fast data transfer speeds compared to HDDs.
Data needs to be transferred between the CPU and primary memory, as well as between
• System Bus: All three types of buses (data, address, and control) collectively form the
system bus, which connects major components like the CPU, memory, and I/O devices. It
is an electronic pathway that carries instructions and data among computer system
components.
• Types of Buses:
◦ Data Bus: Transfers data between different components. It is bidirectional because the
CPU may need to read data from or write data to main memory.
◦ Address Bus: Transfers memory addresses between the CPU and main memory. It is
unidirectional because the CPU specifies the address of the memory location it wants to
• Data Flow:
◦ Any data entered from an input device or accessed from a hard disk must first be placed
◦ The CPU places the desired memory location's address on the address bus and sends
◦ For write operations, data is placed on the data bus and written to the specified address.
For read operations, data is placed on the data bus by a memory controller.
Microprocessor
earlier days, CPUs occupied large rooms, but technological advancements have
miniaturized them.
• Function: Carries out various tasks involved in data processing as well as arithmetic and
logical operations.
• Synonymity: Nowadays, almost all CPUs are microprocessors, so the terms are often
• Word Size: The maximum number of bits a microprocessor can process at a time. Initially
• Memory Size: The amount of RAM that can be used, which varies with word size. From 1
• Clock Speed: The number of pulses generated per second by the internal clock of a
◦ Measured in Hertz (Hz), Kilohertz (kHz), Megahertz (MHz), and now commonly in
◦ Early processors ran at 3-5 MHz; modern processors commonly run at 3-5 GHz.
Microcontrollers
• A microcontroller is a small computing device that has a CPU, a fixed amount of RAM,
• Contrast with Microprocessor: Unlike a microprocessor which has only a CPU on the
• Purpose: Designed for specific tasks only, which reduces their size and cost.
• Application: Embedded in other devices or systems to perform specific functionalities
• Data: Raw and unorganized facts that are processed to get meaningful information.
• Knowledge: Often used interchangeably with data and information, but is a distinct
concept.
• Structured Data:
◦ Definition: Data that follows a strict record structure and is easy to comprehend. It has a
sorted.
◦ Examples: Sales transactions, online railway ticket bookings, ATM transactions, monthly
• Unstructured Data:
◦ Examples: Audio and video files, graphics, text documents, social media posts, satellite
◦ Definition: Data that has no well-defined structure but maintains internal tags or
month-wise attendance details with tags like 'Name', 'Month', 'Class', 'Attendance'.
• Data Capturing: The process of gathering data from different sources in digital form. This
can be done via keyboards, barcode readers, social media posts, or remote sensors.
• Data Storage: The process of storing captured data for later processing. With data being
produced at high rates, storage is challenging, but decreasing costs of digital storage
devices help. Storage devices need periodic upgrades as data grows. Large organizations
• Data Retrieval: Involves fetching data from storage devices for processing as per user
• Data Deletion Threats: Digital data faces threats from device malfunction, accidental
• Mechanism of Deletion: When data is "deleted" digitally, its address entry is merely
marked as free, and the space appears empty to the user, without actual physical deletion
other data. It is the process of retrieving deleted, corrupted, or lost data from secondary
storage devices.
• Security Concerns:
files.
7. Software
functional and operational. Software acts as an interface between human users and
(Microsoft Word), media players (VLC), and photo editors (GIMP). A document or image
Categories of Software Software can be broadly classified into three categories based on
• System Software
• Programming Tools
• Application Software
with its hardware. It knows how to operate and use different hardware components.
• Purpose: Provides services directly to the end-user or other software.
• Examples:
◦ Operating System (OS): The most basic system software that operates the computer;
without it, other software cannot work. It manages application programs, provides user
◦ System Utilities: Software for maintenance and configuration of the computer system.
Examples include disk defragmentation tools, formatting utilities, system restore utilities
(often shipped with OS). Others like anti-virus software, disk cleaner tools, and disk
◦ Device Drivers: Ensure the proper functioning of a particular device. They act as an
interface between the device and the operating system, hiding hardware-level operation
details.
• Used for writing instructions for computers, as humans and computers understand
different languages.
• Components:
◦ Programming Languages:
• Machine Language: Uses 1s and 0s (binary code), directly understood by the computer.
and 0s. Computer-specific, meaning code for one CPU type cannot be used for another.
▪ High-level Languages: Machine-independent and simpler to write using English-like
Java, Python.
▪ Assembler: Converts assembly language code into machine language. Each assembler
▪ Compiler: Converts the entire source code into machine code at once. If syntax rules are
followed, the code is executed. Once translated, the compiler is not needed.
▪ Interpreter: Translates one line at a time. Converts a line into executable code if
syntactically correct, then repeats for all lines. The interpreter is always needed for
execution.
▪ Text Editor: Software for creating text files to type instructions (source code).
▪ Integrated Development Environment (IDE): Combines a text editor, building tools, and a
▪ Debugger: Software used to detect and correct errors in the source code.
• Definition: Software that works on top of system software to cater to the specific
requirements of end-users. A computer system can work without application software, but
• Categories:
◦ General Purpose Software: Developed for generic applications to cater to a broader
(LibreOffice Calc), word processing software (MS Word), graphic editors (Adobe
Photoshop, GIMP), web browsers (Mozilla Firefox), multimedia software, and presentation
software (PPT).
management.
• Free and Open Source Software (FOSS): Developers provide their source code and
software freely to the public for development and improvement. Examples: Ubuntu (OS),
• Freeware: Software freely available for use, but its source code may not be available.
• Proprietary Software: Software that must be purchased from the vendor who holds the
An Operating System (OS) is a system software that manages all the resources of a
computer (hardware including CPU, RAM, Disk, Network, I/O devices). It also controls
application software and device drivers, manages system security, and handles user
memory, allocates them to the CPU, and decides the execution order for multiple
programs.
2. Provide an interface to the user: Allows users to interact with the computer.
◦ Requires users to enter commands (e.g., to create, open, edit, delete files). Users must
◦ Often less interactive and usually allows running a single program at a time.
◦ Allows users to interact with icons, menus, and other visual options. Icons represent
• Touch-based Interface:
◦ Users interact by touching the screen. OS interprets touch inputs as commands (e.g.,
• Voice-based Interface:
◦ Allows users to use voice commands. Addresses needs of users who cannot use physical
• Gesture-based Interface:
◦ Users interact using gestures (e.g., waving, tilting, eye motion, shaking).
Functions of Operating System The OS provides important services and tasks for
• Process Management:
◦ Ensures multiple tasks are completed in minimum time. CPU allocation among processes
is a crucial OS service.
• Memory Management:
◦ Dynamically allocates and frees memory to running processes without affecting others.
◦ Keeps track of occupied and free memory locations to ensure optimal utilization.
• File Management:
multi-user systems.
• Device Management:
◦ Provides options for configuring devices for end-user or other device use.