Computer System Overview
Introduction to Computer Systems
Computers are machines that have revolutionized the world.
The way people lived around ago is significantly different from today due to the ubiquity of computer technology.
Modern life for a student involves constant interaction with email, the Internet, printouts, music, and smartphones.
Computers play a direct or indirect role in every aspect of life, accomplishing tasks diligently and efficiently through the combination of hardware and software.
NOTE: A computer runs on electricity power.
Hardware and Software Definitions
Hardware: The physical electronic components of a computer are called hardware.
Examples include: keyboard, , monitor, printer, etc.
Software: The recorded instructions and programs that govern the working of a computer.
Program: A set of instructions used to carry out a specific task or achieve a special work goal.
Computer Components and Basic Organization
A computer system comprises of basic components (as per Fig. 1.1):
(i) Input Unit: Responsible for taking input for the computer. It is made of the input devices attached to the computer system.
(ii) Output Unit: Responsible for producing information as output. It is made of the output devices attached to the computer system.
(iii) Central Processing Unit (): Responsible for processing data and instructions. It comprises two parts: the Arithmetic and Logic Unit () and the Control Unit.
(iv) Primary Memory: The internal volatile memory where data and instructions are stored during processing.
(v) Secondary Storage Unit: Refers to external storage devices that provide permanent memory to the computer system.
Computer Organisation Definition: The logical structure of a computer system that defines how components are connected, how they affect one another's functioning, and how they contribute to overall performance.
IPO Principle: Computers follow the principle where input is processed to generate specific output.
Interconnections: Functional components like the , , Registers, Control Unit, and Memory are linked to the Input unit, Output unit, and Storage unit through a system known as the BUS (as shown in Fig. 1.2).
The Input Unit and Common Devices
The input unit consists of various input devices that take input in different forms and pass them in digital form to the .
Main Task: Taking input and converting it into a computer-understandable form, specifically binary code.
Content of Input: Consists of both data (on which action is performed) and the instruction (the action to be taken).
Common Input Devices:
Keyboard: A typewriter-like device used to type letters, digits, and commands. Braille keyboards are available for visually challenged people.
Mouse: A pointing device with either a roller on its base or a laser mechanism. it controls the movement of the mouse pointer on the screen.
Microphone (): Used to send sound input. It converts sound into digitized sound or digital audio. A mic requires special hardware known as a sound card to function.
Other Devices: Magnetic Ink Character Reader (), Optical Mark Reader (), Optical Character Reader (), and joystick.
The Output Unit and Common Devices
The output unit converts electronic binary signals from the into human-readable forms such as characters, graphical displays, or audio-visual content.
Common Output Devices:
Monitors: Also known as the screen, it is the most common output device. It displays information similarly to a television. The picture is made of thousands of tiny colored dots called pixels. Braille monitors are available for visually challenged users.
Printers: Deliver information by printing characters on paper. Varieties include inkjet, laserjet, and dot-matrix printers. are currently available to create/print models.
Speakers: Receive sound in the form of electric current from the sound card and convert it into audible sound.
The Central Processing Unit (CPU) and its Sub-components
The is the main control center and processing unit, often called the brain of the computer. It guides, directs, controls, and governs the performance of the computer.
Sub-components of the :
Arithmetic Logic Unit (): Performs four arithmetic operations (, , , ) and logical operations (<, >, =, \le, \ge, \neq). When numbers are compared or added, they are sent from memory to the , and the result is returned to memory. Logical operation results are either or , providing decision-making capabilities.
Control Unit (): Acts as a supervisor by controlling and guiding all operations. It guides the interpretation, flow, and manipulation of data and information. It sends control signals to ensure the and memory perform correctly. It is also responsible for program execution, fetching instructions from memory, decoding them, and executing them.
Registers: Also called processor registers, these are small units of data holding places used to temporarily hold important processing information, such as data parts, memory addresses, or specific instructions, while processing occurs.
Microcontrollers and Embedded CPUs
Modern smart machines like washing machines and microwave ovens contain embedded .
Microcontrollers: These consist of embedded with accompanying memory ( and ) and embedded instructions within internal circuitry.
Functional Workings of Main Memory (Primary Memory)
Main memory is the internal workspace of the computer where data and instructions are held during processing.
Each memory location possesses a unique memory address.
Operation: Once a task is completed, the memory is cleared so the space is available for the next task.
Volatility: Primary memory is temporary; when power is switched off, everything stored gets erased and cannot be recalled.
Units of Computer Memory Measurement
Bit (Binary Digit): The elementary unit of memory.
Nibble: A group of .
Byte: A group of . It is the smallest unit that can represent a data item or character.
Rule of Thumb: Every higher memory unit is equal to (which is ) of its lower unit.
Common Memory Units:
(Kilo Byte) =
(Mega Byte) =
(Giga Byte) =
(Terra Byte) =
(Peta Byte) =
(Exa Byte) =
(Zetta Byte) =
(Yotta Byte) =
Primary Memory Types: RAM and ROM
Random-Access Memory ():
Allows information transfer from any desired random location.
Volatile: Contents are erased when power goes off.
Dynamic (): Composed of transistors and capacitors. Access times range from below .
Static (): Composed of flip-flops (binary cells storing one bit). Faster than (). Used in specialized applications.
Memory Access Time: The amount of time taken to produce data required from memory, from the start of access until the availability of data.
Read Only Memory ():
Performs read operations only; no write capability.
Non-volatile: Information is permanent and cannot be altered.
ROM Types:
(Programmable ): Also called (One Time Programmable). Requires special equipment called a .
(Erasable Programmable ): Can be erased using () and reprogrammed.
(Electrically Erasable Programmable ): Erased electrically, which is faster. Allows selective byte erasure.
Flash : Extremely fast erasure (entire contents in less than ). Erases fully, not selectively.
Mask : Programmed by the manufacturer; not user-programmable.
Understanding Cache Memory
Definition: A special high-speed storage mechanism, which can be a section of main memory or an independent high-speed device on the chip.
Function: The looks in the cache first for data. If found, it bypasses main memory access, making the process very fast.
Cache Hit: When data is successfully found in the cache.
Hit Rate: The effectiveness measure of a cache. The processor accesses information from the cache it is working.
Secondary Storage Units and Media
Storage is necessary because primary memory is limited and temporary.
Magnetic Media:
Hard Disks: Store information on spinning circular platters coated with magnetic material. Data is recorded as tiny magnetic spots by magnetic heads. Capacity ranges from to .
Optical Media:
Compact Disks (): Capacity up to . Relative cheapness.
DVDs: Also called Super Density disk (). Capacity up to ( of movies). Transfers data faster and holds more information than a .
Blu Ray Disk (): Uses a blue-violet laser () instead of a red laser (). The shorter wavelength allows for higher precision and tighter data packing. Capacity up to .
Flash Memory:
Small, ultra-portable storage with no moving parts (solid state). Retains data without power. Sizes range from up to and beyond.
The System Bus and Its Types
The system bus is an electronic pathway of connecting cables that links major computer components to pass data and instructions.
Data Bus: The data-carrying part of the system bus.
Control Bus: The part that carries control instructions.
Address Bus: The part that carries memory addresses.
: Connects input, output, and other external devices to the system.
Mobile System Organization and Architecture
Mobile systems are effectively tiny computers. They have less computing power than full versions and run on limited battery power.
System on a Chip (): Major components integrated on a single chip to consume less power.
Mobile Processor (): The brain of a smartphone. Subdivided into:
Communications Processing Unit: Responsible for phone calls. Uses a digital signal processor to work with the and Audio subsystem.
Radio Signal Management Unit: Connects the (modem type) to base stations through radio signals ( based cellular networks).
Applications Processing Unit (): Governs all operations by running mobile applications ().
Functional Components of a Mobile System
Display Subsystem: Provides display facilities, touch-sensitive interfaces, and touch keyboards.
Camera Subsystem: Features an integrated Image Signal Processor () for instant capture, high resolution, and image stabilization.
Mobile System Memory:
(Random Access Memory): Work memory where apps load to execute. More yields better performance. Volatile.
(Read Only Memory): Technically Flash memory or . Part of internal storage, not writable by users.
External Storage: Also called expandable storage. Includes cards, micro cards, and cloud storage.
Power Management Subsystem: Provides power through a battery unit, charger management system, and battery charger.
Types of Computer Software
Hardware: Tangible physical components (Input/Output devices, , disks, etc.).
Software: Set of programs that govern operations and make hardware run.
Hierarchy: Hardware is supervised by the Operating System, which is supported by Language processors and Utilities. Application software (like Spreadsheets and Databases) sits at the top for users.
System Software and Operating Systems
System Software: Software that controls internal operations (reading data, transmission, component checks, and binary conversion).
Operating System ():
Primary goal: Make the computer convenient to use.
Secondary goal: Use hardware efficiently.
Function: Acts as an interface between user and hardware. Loaded into during boot-up.
Major Components: Hardware, , Application program routines (compilers, DBMS, utilities), and Humanware (users).
Types: Single user, Multiuser, Time sharing, Real time, Multiprocessing, Distributed, etc.
Language Processors and Translators
Language Processor: Translates source code into object code (machine code).
Source Code: Program code written in high-level programming languages () like C, Java, or C++.
Object Code: Machine language or binary code understandable by hardware.
Three Types of Language Processors:
(i) Assembler: Converts assembly language into machine language.
(ii) Interpreter: Translates and executes instructions line-by-line.
(iii) Compiler: Translates and executes the entire program in one go. Results in faster execution time because no further conversion is needed at runtime.
Application Software, Packages, and Utilities
Application Software: Programs used to carry out specific tasks (railway reservation, inventory, billing, etc.).
Packages: General-application software meant for many users. Categories include:
Word Processing Software
Spreadsheets
Database Management Systems ()
Desktop Publishing Software ()
Graphics, multimedia, and presentation apps.
Utilities (Housekeeping programs):
Text Editor: For creating and editing files.
Backup Utility: Duplicating information to protect against data loss.
Compression Utility: Compressing large files to save storage.
Disk Defragmentor: Rearranges fragmented files (stored at different locations) so they are stored in contiguous units, consolidating free space.
Antivirus Software: Scans and removes malicious programs (viruses). Some remain in memory to detect viruses as they occur.
Specialized Business Software
Created specifically according to business requirements.
Readymade examples: Inventory Management System, Payroll System, Financial Accounting.
Customised (tailor-made) Software: Specific requirements for a single company; usually cannot be directly installed at another workplace with different needs.
Software Libraries in Programming
Software Library: A predefined suite of data and programming code (functions, scripts, classes) available for developing new programs.
Developers import/include these libraries to use complex functionality without rewriting it from scratch.
Python Software Libraries:
1. (Numerical Python): Provides features for numeric arrays and matrices.
2. (Scientific Python): Modules for linear algebra, optimization, integration, and statistics.
3. Library: For manipulation, aggregation, and visualization of labeled and relational data.