Unit-1 Computer System
1. Introduction to the Computer System
A computer system is an electronic device designed to be programmed to accept data (input), process that data, and generate
a meaningful result (output). It is not merely a single device but a functional unit comprising hardware and software. The
primary hardware components include:
● Central Processing Unit (CPU): The "brain" of the system.
● Memory: Primary storage for active data.
● Input/Output (I/O) Devices: Interfaces for user interaction.
● Storage Devices: Secondary memory for permanent data [Link] systems are highly versatile in form
factor, ranging from high-end servers and personal desktops to portable laptops, tablets, and smartphones. At the
heart of every system is the CPU, consisting of electronic circuitry housed on integrated circuits (ICs) manufactured
from semiconductor materials.
2. The Central Processing Unit (CPU) and Control Unit (CU)
The CPU performs the actual processing of instructions. While processing, it utilizes registers , which are local, high-speed
memory units limited in size and number, used to store intermediate results and instructions. The CPU is functionally divided
into two main components:
The Control Unit (CU)
The CU acts as the manager of the computer system. Its primary responsibilities include:
● Guiding the flow of data through the memory, ALU, and I/O devices.
● Interpreting program instructions.
● Controlling the sequential execution of instructions.
The Arithmetic Logic Unit (ALU)
The ALU is the computational engine of the CPU. Its functions include:
● Arithmetic Operations: Performing calculations such as addition and subtraction.
● Logic Operations: Executing comparisons and decision-making logic.
3. The Historical Evolution of Computing
Computing has evolved from manual mechanical aids to highly integrated silicon architectures.
● Abacus (c. 3000 years ago): A mechanical device used for basic arithmetic.
● Pascaline (1642): A mechanical calculator created by Blaise Pascal for addition, subtraction, and repeated
addition/subtraction for multiplication and division.
● Analytical Engine (1834): Charles Babbage’s mechanical device comprising input, processing, storage, and
output—the fundamental blueprint for modern computers.
● Tabulating Machine (1890): Herman Hollerith’s punched card system designed to summarize data.
● Turing Machine (1937): Alan Turing’s concept of a general-purpose programmable machine capable of solving any
problem by executing programs stored on punched cards .
● Von Neumann Architecture (1945): Introduced the stored-program concept where both data and programs reside
in memory. This led to the development of the ENIAC, the first binary programmable computer.
● Transistors (1947): Developed at Bell Labs, these semiconductor devices replaced bulky, unreliable vacuum tubes.
● The Rise of Integrated Circuits and Scaling (1970s–Present):
● Moore’s Law: Introduced by Gordon Moore in 1965, it predicted that transistor density on a chip would double
approximately every two years while costs halved.
● LSI (Large Scale Integration): Allowed the integration of a complete CPU onto a single chip, known as a
microprocessor.
● VLSI (Very Large Scale Integration): Integration of millions of components on a single chip.
● SLSI (Super Large Scale Integration): Modern fabrication of approximately $10^6$ or more components on a
single IC.
4. Input and Output (I/O) Devices
I/O devices are the bridge between human users and the digital environment.
I/O Device Classification
Device Type,Description and Examples
Input,"Converts data into digital form and sends control signals. Examples: Keyboard (including Braille), Mouse, Scanner,
Touch Screen, and Voice input (e.g., Google voice search)."
Output,"Converts digital information into human-understandable form. Examples: Monitor (including Braille displays),
Printer (Inkjet, LaserJet, Dot Matrix, 3D), Headphones, and Projectors."
Technical Note on 3D Printing: Beyond standard hardcopies, 3D printers create physical replicas of digital designs. They
are currently used for industrial prototyping and are being explored in the medical field for developing body organs.
5. Computer Memory: Units and Categories
Computers utilize the binary system (0 and 1) to process all information.
Memory Units
● Nibble: 4 bits.
● Byte: 8 bits (2 nibbles).
● Scaling Factor: Digital data units use a conversion factor of 1024.
● 1 KB (Kilobyte) = 1024 Bytes
● 1 MB (Megabyte) = 1024 KB
● 1 GB (Gigabyte) = 1024 MB
● Units continue through TB (Terabyte), PB (Petabyte), EB (Exabyte), ZB (Zettabyte), to YB (Yottabyte).
Memory Types
● Primary Memory: Directly accessed by the CPU.
● RAM (Random Access Memory): Volatile, high-speed memory for temporary storage of active programs.
● ROM (Read Only Memory): Non-volatile, permanent storage for critical startup programs like the boot loader.
● Cache Memory: Extremely high-speed memory placed between the CPU and RAM. It stores copies of frequently
accessed data to reduce the average time the CPU spends waiting for the primary memory.
● Secondary Memory: Non-volatile, high-capacity storage (e.g., HDD, SSD, Pen drives). It is cheaper and slower
than primary memory and cannot be accessed directly by the CPU.
6. Microprocessors vs. Microcontrollers
● Microprocessor: A general-purpose CPU implemented on a single microchip. It is designed to handle a wide range
of processing tasks.
● Microcontroller: A highly integrated, small computing device containing a CPU, a fixed amount of RAM and
ROM, and other peripherals on one chip.
● Embedded Systems: Due to their small size and low cost, they are "embedded" into other devices to perform
specific, repetitive tasks.
● Automatic Execution: They allow systems, such as fully automatic washing machines or microwave ovens, to
control cycles and operations without human intervention.
7. Data Management: Transfer, Deletion, and Recovery
The System Bus and Memory Controller
Data moves between components via the System Bus , which consists of three specialized paths:
● Data Bus (Bidirectional): Carries the actual data. It is bidirectional because the CPU must both read data from and
write data to memory.
● Address Bus (Unidirectional): Carries the specific memory location address.
● Control Bus (Unidirectional): Communicates control signals (e.g., read/write commands).Data retrieval is
managed by the Memory Controller , a dedicated piece of hardware that governs the flow of data into and out of
the main memory.
Data Types
● Structured Data: Follows a strict record structure, typically in rows and columns (e.g., SQL tables, attendance
records).
● Unstructured Data: Has no predefined format (e.g., audio/video files, social media posts).
● Semi-structured Data: Lacks a rigid structure but uses internal tags to separate elements (e.g., HTML, XML, CSV
files).
Deletion and Recovery
Deleting data at the bit level is time-consuming. Consequently, when a file is "deleted," the system usually only marks the
memory address as "free."
● Recovery: Deleted data can often be recovered using specialized tools as long as the memory space has not been
overwritten by new data.
● Confidentiality: To prevent unauthorized recovery, old storage devices should be "shredded" or wiped using tools
that overwrite the data before the hardware is discarded.
8. Software Categorisation and Licensing
Software is the set of instructions that makes hardware functional. Pedagogical Note: A computer can function without
application software, but it cannot function without system software (the Operating System).
Software Categories
● System Software: Provides the basic functionality to operate the hardware.
● Operating Systems (OS): The resource manager (e.g., Windows, Linux, Android) that handles CPU, memory, and
security.
● System Utilities: Maintenance tools (e.g., anti-virus, disk cleaners).
● Device Drivers: Mediators that act as a translator between the OS and specific hardware components.
● Application Software: Designed for specific end-user tasks (e.g., word processors, browsers).
Programming Tools and Translators
Humans write Source Code (high-level, English-like) while computers only understand Object Code (machine language,
1s and 0s). Translation is required via:
● Assemblers: Translate assembly language (symbols/mnemonics) into machine code.
● Compilers: Translate the entire source program into an executable object code file at once.
● Interpreters: Translate and execute code line-by-line; an interpreter is required every time the program runs.
Software Licensing Models
● Free and Open Source Software (FOSS): Both the software and its source code are freely accessible for
improvement (e.g., Ubuntu, Python).
● Freeware: Software provided at no cost, though the source code remains hidden.
● Proprietary Software: Owned by an entity; users pay for a license to use it, and the source code is strictly
protected.
9. Introduction to the Computer System
A computer system is an integrated functional unit consisting of hardware and software designed to process data. Based on
the fundamental computing cycle, a system is programmed to accept Input (raw data), Process it according to
instructions, and generate a resulting Output .Modern computer systems are remarkably heterogeneous, manifesting in
diverse forms ranging from high-end enterprise servers and personal desktops to portable laptops, tablets, and smartphones.
Despite this variety in scale, all systems adhere to the same architectural principles of data manipulation and storage.
10. Basic Computer Architecture and the Central Processing Unit (CPU)
To understand how a computer functions as a single unit, we must examine its internal relationships. The following hierarchy
replicates the functional block diagram of a standard system:
● Input Devices: Responsible for sending data and control signals to the system.
● Central Processing Unit (CPU): Often termed the "brain" of the computer or the microprocessor, this circuitry
carries out the actual data processing.
● Control Unit (CU): Acts as the system's supervisor. It interprets instructions, manages their sequential execution,
and guides the flow of data between the ALU, memory, and I/O devices.
● Arithmetic Logic Unit (ALU): The computational engine responsible for all arithmetic calculations and logical
operations.
● Registers: High-speed local memory internal to the CPU chip. While they provide the fastest access, they are
strictly limited in size and number, used primarily for holding instructions or intermediate results during active
processing.
● Memory System:
● Primary Memory: Directly accessible by the CPU for immediate operations.
● Secondary Storage: Used for permanent data retention.
● Output Devices: Receive processed data for display or physical production.
11. Hardware: Input and Output Devices
Input Devices
Input devices convert external data into a digital format acceptable by the computer.
● Standard Input: Keyboards, mice, scanners, and touch screens.
● Specialized Hardware:
● Braille Keyboards: Specifically engineered to allow visually impaired users to enter data.
● Voice-Input: Mechanisms that utilize voice recognition (e.g., Google voice search) to input search strings or
commands.
Output Devices
Output devices convert digital information back into human-understandable or physical forms.
● Visual/Auditory: Monitors, projectors, headphones, and speakers.
● Printers and Industrial Applications:
● Inkjet, Laserjet, and Dot Matrix: Standard hardware for generating "hard-copy" documentation.
● 3D Printers: Used to build physical replicas of digital designs. These are critical in manufacturing for prototyping
and are being explored in the medical field for developing synthetic body organs.
● Accessibility: Braille display monitors allow visually challenged users to interpret textual output.
Comparison of Input and Output Devices
Feature,Input Devices,Output Devices
Primary Function,Convert data into digital form for processing.,Convert digital data into human-understandable form.
Data Direction,External environment $\rightarrow$ Computer System.,Computer System $\rightarrow$ External
environment.
Examples,"Keyboard, Mouse, Scanner, Voice-input, Braille keyboard.","Monitor, Printer, 3D Printer, Speaker, Braille
display."
12. Historical Evolution of Computing
Computing has evolved from mechanical counters to high-density semiconductor integration in a relatively short span.
Chronological Milestones
● 500 BC (3000 years ago) - Abacus: A mechanical aid for simple arithmetic.
● 1642 - Pascaline: A mechanical calculator for direct addition and subtraction.
● 1834 - Analytical Engine: Invented by Charles Babbage; established the input, process, store, and output basis for
modern architecture.
● 1890 - Tabulating Machine: Designed by Herman Hollerith to summarize data using punched cards.
● 1937 - Turing Machine: Alan Turing’s concept for a general-purpose programmable machine capable of executing
programs stored on punched cards .
● 1945 - ENIAC/EDVAC: Introduced the "stored program" concept, allowing data and instructions to share memory.
● 1947 - Transistor Revolution: Semiconductor transistors replaced bulky vacuum tubes, increasing efficiency.
● 1970 - Integrated Circuits (IC): Entire electronic circuits were fabricated onto single silicon chips.
The Law of Exponential Growth
Moore’s Law predicts that the transistor density on a chip doubles every two years while costs halve. This has led to massive
increases in integration density:
● VLSI (Very Large Scale Integration): Emerged in the 1980s, integrating approximately 3 million components
on a single chip.
● SLSI (Super Large Scale Integration): Current technology allows for high-density fabrication exceeding $10^6$
(millions) of components on one IC, drastically reducing system size.
13. Computer Memory Systems
Units of Measurement
The bit (0 or 1) is the basic unit. A 4-bit word is a Nibble , and an 8-bit word is a Byte .|
Primary Memory
Primary memory is essential for loading programs and data before processing.
● RAM (Random Access Memory): Volatile "main memory" that retains data only while powered.
● ROM (Read Only Memory): Non-volatile memory for critical instructions.
● Boot Loader: A permanent program in ROM that loads the Operating System into RAM during startup.
● Architectural Scaling: Due to 64-bit word sizes, it is now theoretically feasible to address RAM of size up to 16
Exabytes (EB) .
Cache Memory
Cache is an ultra-high-speed memory layer situated between the CPU and RAM. It stores copies of frequently accessed data
from the primary memory to minimize the time the CPU spends waiting for data—the "access time bottleneck."
Secondary Memory
Secondary memory provides permanent, non-volatile storage. It is slower and cheaper than RAM and cannot be accessed
directly by the CPU; data must be moved to RAM first.
● HDDs vs. SSDs: Traditional magnetic disks are being replaced by Solid State Drives (SSDs) for faster transfer.
● Portable Storage: Pen drives and flash drives allow for easy data movement between systems.
14. System Communication and Processing Specifications
The System Bus
The System Bus is the collection of physical wires used for data transfer.
● Data Bus: Bidirectional; transfers actual data.
● Address Bus: Unidirectional; carries the memory address the CPU intends to access.
● Control Bus: Unidirectional; communicates control signals (read/write).
● The Memory Controller: In a read operation, the CPU specifies the address, and a dedicated hardware component
called the Memory Controller places the data on the data bus.
Microprocessors vs. Microcontrollers
● Microprocessor: Primarily the CPU on a single chip; used for general-purpose computing.
● Microcontroller: A "system on a chip" designed for specific tasks (e.g., washing machines). It includes a CPU, a
fixed amount of RAM, ROM, and I/O ports on one chip to reduce cost and size.
Technical Evolution and Specifications
● Word Size: The maximum bits a CPU processes at once (currently 64-bit).
● Clock Speed: Pulses per second, indicating execution speed (Transitioned from Hz to GHz).
● Cores: Computation units within a CPU. Multicore (Dual, Quad, Octa) systems allow simultaneous task execution.
15. Digital Data Management
Data Classification
● Structured Data: Rigid tabular records (e.g., sales transactions or school attendance).
● Semi-structured Data: No strict format but uses tags to separate elements (e.g., HTML, CSV, or XML).
● Unstructured Data: No pre-defined format; includes media files and social media posts.
Data Lifecycle and Security
The lifecycle includes Capture , Storage , and Retrieval . A significant challenge in the Capture stage is the
heterogeneity of data sources (e.g., varying formats from sensors vs. social media).Data Deletion and Recovery: Deleting
data merely marks the address as "free" at the bit level; the data remains until overwritten.
● Security Risk: If discarded storage devices are not properly wiped or shredded, "mischief-mongers" can easily
recover confidential data. This poses a severe threat to data confidentiality.
16. Software Taxonomy
Software is the set of instructions that makes hardware operational, acting as the interface between the user and the machine.
● System Software: Provides basic functionality.
● Operating System (OS): Manages programs, security, and hardware access.
● System Utilities: Maintenance tools (e.g., anti-virus, defragmentation).
● Device Drivers: Act as a "mediator" or translator between the OS and hardware, hiding hardware-level
operational details.
● Application Software: General-purpose (word processors) or customized tools.
● FOSS (Free and Open Source Software): Software where the source code is freely accessible for improvement
(e.g., Ubuntu, Python).
17. Programming Languages and Translation
Classification
● Low-level: Machine-dependent. Includes Machine Language (1s and 0s) and Assembly (uses English-like symbols).
● High-level: Machine-independent (e.g., Python, C++). Simpler for humans but requires translation.
Translation Mechanisms
● Assemblers: Convert assembly to machine code.
● Compilers: Translate the entire source code into Object Code at once. Once translated, the compiler is no longer
required for execution.
● Interpreters: Translate and execute code line-by-line. The interpreter must be present every time the program runs.
Development Tools
● Source Code: The original code written by the programmer.
● Object Code: The machine-executable version.
● IDE (Integrated Development Environment): A suite combining an editor, building tools, and a debugger (used
to detect and correct errors).
18. Operating System (OS) Deep-Dive
As a "Resource Manager," the OS governs all hardware (CPU, RAM, Disk, Network) and software [Link]
Objectives:
1. Running Programs: Loading applications into memory and allocating CPU cycles.
2. User Interface (UI): Providing an interaction [Link] of Interfaces:
● Command-based: Textual input (e.g., DOS, UNIX).
● GUI (Graphical User Interface): Icons and menus (e.g., Windows, macOS).
● Emerging: Interaction through Voice and Gesture.