FS Unit 1 Components of a Computer
FS Unit 1 Components of a Computer
Computer
Ms. Vandita Srivastava
Ph.D. Scholar
School of Information Technology, Artificial Intelligence and Cyber Security
Rashtriya Rakha University
What is a computer
• An electronic machine that is used for storing, organizing, and finding words, numbers,
and pictures, for doing calculations. A computer is a machine that can store
and process information.
• The first large computers, used in demanding business, big data analytics, and other
applications, are referred to as mainframe computers. (The name dates back to the days
when the processor took up an entire large frame, or mounting rack, stretching from the
computer room’s floor to the ceiling.)
• The somewhat less powerful (and considerably less expensive) machines that came to be
used by small groups or individuals were smaller than mainframes and picked up the tag
of minicomputers
• Microcomputer refers to any machine using a microprocessor (or single-chip CPU) as its
main processor. Because this is true of virtually all computers of the 21st century, the term
has largely lost the ability it once had to distinguish between different classes of systems.
Modern classification (All
microcomputers)
• Personal computers (both desktop and portable machines, including laptops, notebooks, and
netbooks);
• Scientific and engineering workstations, which include high-performance CPUs and GPUs to
support applications such as CAD and data visualization;
• Mobile computers, such as tablets, smartphones, smart watches, etc., which are designed to
be easily carried or even worn by the user;
• Microcontrollers, which are embedded inside other products, including appliances, consumer
electronics, automobiles, and so on;
• Game consoles, which are specialized machines designed to interact in real time with users and
provide realistic virtual environments for game play;
• Digital signal processors (DSPs), which are used to process digitized audio, video, and other
analog information; and supercomputers, the most powerful machines of all, used to perform
the intensive “number-crunching” needed to solve large-scale scientific and engineering
problems.
Hardware
The physical elements of a computer, its hardware, are
generally divided into the central processing unit (CPU), main
memory (or random-access memory, RAM), and peripherals.
• RAM
• ROM
• Motherboard
• CMOS battery
• Hard-drive
• Disk Geometry Optical Media
• Other Storage devices like pen-drive, SD card
Computer memory systems
• The most popular types of memory are semiconductor chips
(integrated circuits) and magnetic and optical media.
• Semiconductor memories in general possess the advantage of speed.
This is why the main memory space of virtually all modern computers
is populated exclusively with semiconductor device.
• magnetic and optical devices are relegated to the role of secondary or
tertiary (backup) storage.
Random Access Memory
• RAM (random access memory) is a computer's short-term memory,
where the data that the processor is currently using is stored.
• Computer can access RAM memory much faster than data on long-
term storage devices (twenty to hundred times faster), which is why
RAM capacity is critical for system performance.
• It is a temporary or volatile storage that gets wiped off when
computer is turned off.
• The more RAM a computer has, the faster it runs.
• Transistors are the building blocks of RAM. They act as electronic
switches that control the flow of electrical signals in memory cells.
Each bit of data in RAM is stored in a memory cell, and the design of
this memory cell depends on whether the RAM is DRAM or SRAM.
Types of RAM: DRAM and SRAM
Feature SRAM (Static RAM) DRAM (Dynamic RAM)
SRAM is made up of multiple transistors DRAM uses a capacitor to store each bit, which
Definition
that form a latch to store each bit of data. requires regular refreshing to retain the data.
Stores data using a latch made of several Stores data using a capacitor and a single
Storage Element
transistors (usually 6). transistor per bit.
Memory Cell 6 transistors per bit. 1 transistor + 1 capacitor per bit.
Does not require refreshing as the latch Requires periodic refreshing to retain data due
Data Retention
holds the data. to capacitor leakage.
Consumes more power because it must Consumes less power since it only uses power
Power Consumption
continuously keep transistors active. during access and refreshing cycles.
Storage Capacity Typically has less storage capacity due to higher Typically has higher storage capacity because it can pack
transistor count per bit. more bits into the same area.
Placement of Memory Often placed in CPU caches and registers, or on Placed in the main memory of the computer and in
the motherboard in smaller sizes. expansion cards.
Density Lower density due to the use of more transistors Higher density as fewer components are needed to store
per bit. each bit.
Cost More expensive per bit due to higher transistor Less expensive per bit because it uses fewer transistors
count and larger size. and can fit more memory in smaller space.
Number of Transistors Uses more transistors (6 per bit) to store each bit Uses fewer transistors (1 per bit) alongside capacitors.
of data.
Power Consumption Consumes more power due to the continuous Consumes less power except during refresh cycles.
operation of transistors.
Used in CPU caches, registers, and high-speed
Applications applications like real-time digital signal Used as the main memory in computers and other
processing. general-purpose memory applications.
Advantages Faster, simpler design, more power-efficient, and More storage capacity, less expensive per bit, and more
easy to interface with the CPU. suitable for large-scale memory needs.
Limitations Smaller size, more expensive, less storage Slower, requires periodic refreshing, higher power
capacity, and uses more space on chips. consumption for large-scale memory operations.
Read Only Memory (ROM)
• It is a memory device or storage medium that stores information
permanently.
• The manufacturer of ROM fills the programs into the ROM at the time of
manufacturing the ROM. After this, the content of the ROM can't be altered,
which means you can't reprogram, rewrite, or erase its content later.
However, there are some types of ROM where you can modify the data.
• Eg,: For booting up the computer, It loads the operating system into the main
memory (RAM) installed on your computer. The BIOS program, which is also
present in the computer memory (ROM) is used by the microprocessor of the
computer to start the computer during the booting process. It allows you to
open the computer and connects the computer with the operating system.
Types of ROM
Feature MROM (Masked ROM) PROM (Programmable ROM) EPROM (Erasable EEPROM (Electrically Erasable
Programmable ROM) Programmable ROM)
A type of ROM that is A type of ROM that can be A type of ROM that can be A type of ROM that can be
Definition programmed during programmed once after programmed and erased using electrically programmed and
manufacturing and cannot manufacturing using special ultraviolet (UV) light. erased multiple times.
be reprogrammed. equipment.
Permanent; data cannot be Data can be erased and Data can be erased and
Data Retention changed after Permanent once programmed; reprogrammed multiple times reprogrammed multiple times
manufacturing. data cannot be changed. with UV exposure. electronically.
Erased by applying an
Erasure Method Data cannot be erased or
changed.
Data cannot be erased once
programmed.
Erased by exposing the chip to electrical charge to specific
ultraviolet (UV) light. sections of the memory.
Reusability Non-reusable. Non-reusable; write-once Reusable after UV erasure. Reusable after electronic
memory. erasure.
Feature MROM (Masked ROM) PROM (Programmable ROM) EPROM (Erasable EEPROM (Electrically Erasable
Programmable ROM) Programmable ROM)
Cheapest among all types of More expensive than PROM, More expensive than EPROM
Cost ROM due to mass Slightly more expensive than as it requires special UV due to electrical erasure and
production. MROM. equipment for erasing. programming capability.
Used in devices where the Used in applications where the Used in modern applications
firmware never needs to be firmware needs to be Used in applications where like microcontrollers, memory
Applications updated, such as calculators programmed only once, like updates may be needed, like cards, and firmware where
or older hardware. early firmware in devices. BIOS chips in older computers. frequent updates are needed.
6. In the HDDs, the transfer of data is 6. In the SSDs, the transfer of data is not
sequential. sequential.
7. Due to the mechanical movements,
HDDs produce noise. 7. This storage device does not produce noise.
HDD SSD
8. The size of the HDD devices is larger. 8. The size of the SSD is more compact.
10. In HDDs, magnets can remove the data. 10. SSDs are safe from the magnetic effect.
11. HDD devices generate more heat because of the 11. SDDs generates little heat because there is no moving
mechanical part. part included.
14. The file opening speed of SSD is 30% faster than the
14. The file opening speed of HDDs is slightly slower. HDD.
Portability Small and easily portable, often with Extremely portable due to its tiny size,
keychain designs. especially MicroSD cards.
Compatible with almost all devices with a Compatible with cameras, smartphones,
Compatibility USB port (PCs, TVs, printers, etc.). tablets, and devices with SD card slots or
adapters.
Data Retention Long data retention when unplugged, Long data retention, also about 10-20 years
around 10-20 years. if stored properly.
Some pen drives come with encryption Some SD cards offer built-in write
Security Features protection switches and encryption
or password protection features.
capabilities.
Storing and transferring files, documents, Storing photos, videos, apps, and other
Popular Applications media, and backups between computers. data in mobile devices and cameras.
Software
• the software is basically a set of instructions or commands that tell a
computer what to do.
• There are 2 types of software: System Software and application software
• Operating System
• windows
• Unix/Linux and its distribution
• iOS
• BIOS
• Files and File System, FAT32, NTFS, Unix File system, Mac File System
• Concepts of bit, byte, Binary.
Operating system
• An Operating System (OS) is an interface between a
computer user and computer hardware. An operating
system is a software which performs all the basic tasks
like file management, memory management, process
management, handling input and output, and
controlling peripheral devices such as disk drives and
printers.
• Eg: Windows, Linux, MacOS, iOS, Android
Operating System Functions
• Process Management
• I/O Device Management
• File Management
• Network Management
• Main Memory Management
• Secondary Storage Management
• Security Management
• Command Interpreter System
• Control over system performance
• Job Accounting
• Error Detection and Correction
• Coordination between other software and users
• Many more other important tasks
Four Main Types of OS
• Single-User, Single-Tasking Operating Systems − These operating systems allow only
one user to work on the computer at a time, and they can handle only one task or
program at a time. Examples include early versions of MS-DOS.
• Single-User, Multi-Tasking Operating Systems − These operating systems allow one
user to run multiple programs or tasks simultaneously. The operating system switches
between tasks quickly, giving the illusion of running multiple programs at once.
Examples include modern versions of Windows, macOS, and Linux.
• Multi-User Operating Systems − These operating systems allow multiple users to work
on the same computer simultaneously. Each user can have their own user account and
run their own programs independently. Examples include UNIX-based systems like
Linux and macOS, as well as server versions of Windows.
• Real-Time Operating Systems (RTOS) − These operating systems are designed to
process data and respond to events in real-time, with strict deadlines for completing
tasks. They are used in applications where timing is critical, such as controlling
industrial machinery, automotive systems, and aerospace applications. Examples
include QNX and VxWorks.
Windows OS
• Windows is a Graphical User Interface (As apposed to command line
interface) developed by Microsoft. It allows users to view and store
files, run the software, play games, watch videos, and provides a way
to connect to the internet.
• It supports multi tasking. Users can monitor and manage running
applications, processes, and system performance through the Task
Manager.
• Features
• User Account Control (UAC): UAC helps prevent unauthorized changes to the
system by prompting for permission or administrator credentials.
• Windows Defender: Built-in antivirus and antimalware software that provides
real-time protection against threats.
• BitLocker Drive Encryption: Encrypts entire drives, safeguarding data from
unauthorized access.
• System Restore: Allows users to revert the system to a previous state in case
of issues, helping maintain system stability.
• Windows Backup and Restore: Provides options for backing up files and
system images to protect against data loss.
Windows File systems
• A file system is a method an operating system uses to store, organize,
and manage files and directories on a storage device.
• Windows file system include: NTFS and FAT32