Computer Systems Overview and Basics
Computer Systems Overview and Basics
L T P :2 0 0
1
[Link] Lovely Professional University
Unit-1 (Computer Systems)
TABLE OF CONTENTS:
• Basic structure of computer, working
• Computer associated peripherals
• Memories (Primary and Secondary)
• Basic of GPU basics , CPU and GPU
• PC connection interface
• Introduction to RAID & RAID level
2
[Link] Lovely Professional University
Inside a computer
3
[Link] Lovely Professional University
Computer System: Basic
Structure
A computer is also called a data processor because it can store, process, and retrieve
data whenever desired
Workflow:
1. Input - User provides data.
2. Processing - CPU processes instructions.
3. Storage - Data stored temporarily or permanently.
4. Output - Results displayed or printed.
Advantages:
- High speed processing
- Automation
- Large storage capacity
• Software,
o the programs and instructions, in turn controls the hardware's
functions.
Hardware Software
Physical components Programs and instructions
•They don’t talk to hardware directly. Instead, they use the next layer (API) to request
services.
•Handles very low-level operations, like booting the computer, keyboard input, and disk
reading.
12
[Link] Lovely Professional University
Structure of a Computer System
Output Devices
• Output devices are how the computer communicates back
to us.
Fast in operation
Small Capacity
Expensive
Volatile (looses data on power dissipation)
21
[Link] Lovely Professional University
Primary Memory: RAM
•Cache Use → RAM can be used for cache memory, which is very fast but expensive.
•Needs Refresh → Some types of RAM need periodic refreshing to retain data.
Key Point
RAM is crucial for active programs because it temporarily stores data and
instructions that the CPU needs quickly.
24
[Link] Lovely Professional University
Types of RAM
RAM primarily comes in two forms:
Static RAM (SRAM) and
Dynamic RAM (DRAM).
SRAM DRAM
• Fast, expensive • Slower, cheaper
• Used in CPU cache • Main system memory
• No refresh needed • Requires constant refresh
26
[Link] Lovely Professional University
Primary Memory: ROM
29
[Link] Lovely Professional University
Types of ROM
• MROM: MROM stands for Mask
Read Only Memory.
30
[Link] Lovely Professional University
Types of ROM
• PROM: PROM stands for Programmable read-
only memory.
• A PROM is considered a blank chip.
• We can say it is a ROM without any content
inside it.
• Therefore, in such a case, the user can freely
add content.
• But remember once the data has been inserted
into the PROM, it could not be revised.
31
[Link] Lovely Professional University
Types of ROM
• EPROM (erasable programmable read-only memory)
• It is memory that does not lose its data when the power supply is cut off.
• The data can be erased and the chip reprogrammed.
• By shining an intense ultraviolet (UV) light through a window designed into the memory chip
it reprogramed.
32
[Link] Lovely Professional University
EEPROM:
• EEPROM stands for Electrically Erasable Programmable Read-
Only Memory.
• The concept of EEPROM is somehow the same as the EPROM.
• EEPROM provides the stored data to be deleted electrically.
• Once the data got deleted, it could be rewritten Electrically.
Flash Memory:
• Flash memory is electrically erased and reprogrammed.
• Flash memory can be erased and rewritten faster than ordinary
EEPROM.
33
[Link] Lovely Professional University
RAM vs ROM
34
[Link] Lovely Professional University
Secondary Memory Overview
Non-volatile Storage
Data retained permanently.
Higher Capacity
Stores large amounts of data.
Slower Access
Compared to primary memory.
B. The computer has insufficient RAM to hold all the active applications
and their data simultaneously.
C. The input peripherals, like the mouse and keyboard, cannot keep up
with the editor's commands.
C. The input peripherals, like the mouse and keyboard, cannot keep
up with the editor's commands.
A. All installed programs will be gone, but any unsaved work in an open
spreadsheet will be automatically recovered.
B. The computer's BIOS settings will be lost, but the saved files on the
desktop will remain.
C. Any unsaved changes in an open image file will be lost, but the
computer will boot up using the firmware stored on the ROM.
D. An unsaved text document the user was typing will be available, but
the operating system will need to be reinstalled from the HDD.
A. All installed programs will be gone, but any unsaved work in an open
spreadsheet will be automatically recovered.
B. The computer's BIOS settings will be lost, but the saved files on the
desktop will remain.
C. Any unsaved changes in an open image file will be lost, but the
computer will boot up using the firmware stored on the ROM.
D. An unsaved text document the user was typing will be available, but
the operating system will need to be reinstalled from the HDD.
46
[Link] Lovely Professional University
Hard Disk Drives (HDD)
• Main Components of Hard Disk Architecture:
1. Platters: Circular disks made of glass or aluminum.
– Tracks: Concentric circles on the platter surface.
– Each platter surface has many tracks.
– Sectors: Each track is divided into small segments called sectors.
4. Actuator Arm: Moves the read/write head over the platter surface.
47
[Link] Lovely Professional University
The WD Black 4TB drive without its
cover
48
[Link] Lovely Professional University
Features of HDD
•Non-Volatile: Data remains stored even when the power is off,
making it ideal for long-term storage.
Cost-Effective – HDDs are cheaper per GB than High Power Consumption – The mechanical parts of
SSDs, making them a budget-friendly option for mass an HDD require more energy to operate compared to
storage. SSDs.
Reliable & Proven Technology – HDDs have been Less Durable – Moving parts make HDDs more prone
around for decades, constantly improving to damage if dropped, making them less suitable
in performance and durability. for portable devices.
Data Retention & Recovery – HDDs retain data Noisy Operation & Heat Generation – The spinning
even when powered off, and data recovery tools can platters and moving parts generate noise and heat,
restore lost files in case of failure. affecting system efficiency.
Widely Compatible – HDDs work with most Slower Read/Write Speeds – While HDDs
computers, operating systems, and external storage handle large sequential data well, random access
devices. speed is much slower than SSDs.
51
[Link] Lovely Professional University
Advantages of SSD
•Random Access Times: Accessing data directly from the Flash memory creates a lag-free
experience for its users.
•Data transfer rates: Higher Data Transfer rates of about 100-600 Mb/sec.
•Operating Temperature Range: SSDs can operate effectively in a wider temperature range
compared to HDDs..
•Boot Time and Application Load Times: SSDs reduce boot time of operating system and other
applications.
•Security features: SSDs offer advanced security features like hardware encryption and secure
erase functions to protect data from unauthorized access.
3. SSDs, if die, they die without any warning so you may lose your data if not
already backed up.
4. SSDs are good for people who need higher speeds as in gaming and real-
time computing etc.
5. Hard Disk Drives are okay for people who require more of storage space
compared to speed.
55
[Link] Lovely Professional University
Motherboard:
The Computer Backbone
The motherboard is the foundational circuit board.
57
[Link] Lovely Professional University
The Central Brain: What is a CPU?
Types of GPUs
• Integrated GPUs are built into the CPU.
– They share memory with the processor.
– Common in laptops and basic desktops.
• Discrete GPUs are separate hardware cards.
– They have dedicated video memory (VRAM).
– Free up system RAM for other tasks.
62
[Link] Lovely Professional University
What Does a GPU Do?
63
[Link] Lovely Professional University
64
[Link] Lovely Professional University
CPU vs. GPU:
Architectural Showdown
PC Connection Interface –
Overview
Connects PC to
internal/external devices
67
[Link] Lovely Professional University
68
[Link] Lovely Professional University
Types of Connection Interface
• VGA : A Video Graphics Array (VGA):
69
[Link] Lovely Professional University
Types of Connection Interface
70
[Link] Lovely Professional University
NFC (Near Field Communication)
What is NFC?
Types of NFC:
Active NFC
• Both devices can send and receive data.
• Example: Your phone tapping another phone to share files (Android Beam, AirDrop
style).
Passive NFC
• One device only sends data, doesn’t receive.
• It doesn’t even need its own battery or power.
• Example: Your student ID card, metro card, hotel key card — they just send info when
scanned.
73
[Link] Lovely Professional University
• SATA: serial advanced technology
attachment,
• Also called serial ATA,
74
[Link] Lovely Professional University
SATA
PATA
75
[Link] Lovely Professional University
• Bluetooth Interface
76
[Link] Lovely Professional University
RAID
• Introduction to RAID
77
[Link] Lovely Professional University
• What is RAID?
78
[Link] Lovely Professional University
• How RAID Works
• Data split across multiple storage
drives.
• May also create duplicate data
pieces.
• Lost data recovered from remaining
drives.
• Similar to sharing and copying a
book.
• Ensures data continuity after disk
failure.
• Varies based on RAID configuration.
79
[Link] Lovely Professional University
RAID Controller
• Its job is to manage how strips are read/written across multiple
disks.
• It makes multiple physical disks appear as one single logical
large-capacity disk to the system.
Benefits:
• Improved Performance: Since read/write operations can
happen in parallel across multiple disks.
• Load Balancing: Multiple disks share the workload.
• Scalability: Easy to expand by adding more disks.
82
[Link] Lovely Professional University
83
[Link] Lovely Professional University
1. Hardware-Based RAID
How it works: Uses a dedicated physical RAID controller card (separate from
CPU/RAM).
Pros:
Best performance (since RAID operations don’t burden system CPU).
High reliability (independent from OS crashes).
Advanced features like caching, battery backup, hot-swapping.
Cons:
More expensive.
How it works: RAID functionality is managed by the operating system (no extra
hardware).
Pros:
Low cost (no need for special hardware).
Easy to configure with OS tools (Linux mdadm, Windows Disk Management).
Cons:
Consumes system resources (CPU cycles, RAM).
Lower performance compared to hardware RAID.
How it works: RAID logic is built into the motherboard firmware/BIOS, activated
before the OS loads.
Pros:
• Hybrid approach: combines some benefits of hardware RAID (boots before OS)
with software RAID (relies on drivers).
• Often bundled with motherboards (Intel RST, AMD RAIDXpert).
Cons:
• Still uses CPU resources, so performance is between hardware and software RAID.
• Can be driver-dependent and less portable.
Best for: Mid-range systems, desktops, or when budget is limited but boot-level RAID
is needed.
Use Software RAID → when you need cheap, flexible RAID (personal/SMB
use).
Use Firmware RAID → when you want a middle ground (bootable RAID on
budget systems).
88
[Link] Lovely Professional University
RAID 0
RAID 0 – Striping for Performance
89
[Link] Lovely Professional University
RAID 1
•RAID 1 – Mirroring for Reliability
90
[Link] Lovely Professional University
RAID 2
• RAID 2 – Bit-Level Striping with Hamming
Code
91
[Link] Lovely Professional University
RAID 3
•RAID 3 – Byte-Level Striping with Parity
Or ( Raid 3 - speed and Fault Tolerance )
92
[Link] Lovely Professional University
What does Parity mean in RAID?
Parity = extra information stored on a special disk, used to rebuild data if one
disk fails.
It doesn’t copy the data exactly (like RAID 1 mirroring), but instead stores a
mathematical summary of the data.
In simple terms:
Parity is like a backup formula.
Instead of storing a second copy of the data, it stores just enough info to
recreate it if one disk dies.
94
[Link] Lovely Professional University
RAID 5
RAID 5 - Speed and Fault Tolerance
95
[Link] Lovely Professional University
RAID 6
• RAID 6 – Double Parity for High
Fault Tolerance
• Advanced version of RAID 5
• Uses double distributed parity for
protection
• Can tolerate two disk failures
simultaneously
• Ideal for critical systems and large
arrays
• Offers greater reliability than RAID
5
• Slower write performance due to
extra parity
96
[Link] Lovely Professional University