Ict Cs181 Week 2
Ict Cs181 Week 2
Communication Technology
CS181
Week 2
Fall-2023
Department of Computer Science
System Unit
The system unit is a case that
contains electronic components of
the computer used to process
data.
System units are available in a
variety of shapes and sizes.
The case of the system unit,
sometimes called the chassis, is
made of metal or plastic and
protects the internal electronic
components from damage.
2
All computers and mobile devices
Motherboar
d
The motherboard,
sometimes called a
system board, is the
main circuit board of
the system unit.
Many electronic
components attach to
the Motherboard,
others are built into it.
3
Motherboar
d
4
Processor
The processor, also called the central
processing unit (CPU), interprets and
carries out the basic instructions that
operate a computer.
The processor significantly impacts
overall computing power and manages
most of a computer’s operations.
Processors are tiny, powerful chips that
use their built-in transistors to operate as
a logic gate of binary number sequences.
Since they are so small yet so powerful,
they enable devices like smart watches
to run as quickly as a phone or some
computers.
Processors contain a control unit and an
arithmetic logic unit (ALU).
These two components work together to 5 5
Inside the CPU
6
Parts of
CPU
7
Control Unit
The control unit is the component of
the processor that directs and coordinates
most of the operations in the computer.
It interprets each instruction issued by a
program and then initiates the
appropriate action to carry out the
instruction.
Types of internal components that the
control unit directs include the
arithmetic/logic unit, registers, and
buses.
8
Arithmetic Logic Unit
11
Memory
• 1 byte = 8bit
• 1 Kilobyte = 1,024
• 1 Megabyte =1,048,576
• 1 Gigabyte
=1,073,741,824
• 1 Terabyte
=1,099,511,627,776
13
Storage
Devices
14
Storage
Devices
The storage unit is a part of
the computer system which
is employed to store the
information and instructions
to be processed.
A storage device is an
integral part of the computer
hardware which stores
information/data to process
the result of any
computational work.
Without a storage device, a M. Junaid Nazar ([email protected])
Asim Ali Fayyaz ([email protected])
15
Types of Memory
1. Primary Memory
2. Secondary Memory
3. Tertiary Memory
16
Primary
Memory
It is also known as internal
memory and main memory.
This is a section of the CPU that
holds program instructions, input
data, and intermediate results.
It is generally smaller in size.
RAM (Random Access Memory)
and ROM (Read Only Memory)
are examples of primary storage.
17
Secondary
Memory
Secondary storage is a memory
that is stored external to the
computer.
19
Types of Computer Storage
Devices
1. Primary Storage Devices
2. Magnetic Storage
Devices
3. Flash memory Devices
4. Optical Storage Devices
5. Cloud and Virtual
Storage
20
Primary Storage Devices
21
RAM
It stands for Random Access Memory. It is
volatile memory.
It is used to store information that is used
immediately, or we can say that it is a
temporary memory.
Once, the computer is turned off, the data is
deleted.
With the help of RAM, computers can perform
multiple tasks like loading applications,
browsing the web, editing a spreadsheet,
experiencing the newest game, etc.
It is also used to load and run applications, like
your spreadsheet program, answers
commands, like all edits you made within the
22
spreadsheet, or toggle between multiple
Types of RAM
1. Static Random Access Memory
(SRAM)
23
ROM
It stands for Read-Only Memory.
The data written or stored in these
devices are non-volatile, i.e., once
the data is stored in the memory
cannot be modified or deleted.
The memory from which will only
read but cannot write it. This type
of memory is non-volatile.
The information is stored
permanently during manufacture
only once.
ROM stores instructions that are
used to start a computer. This
operation is referred to as
bootstrap.
24
Types of ROM
1. Programmable Read-Only
Memory (PROM)
2. Erasable Programmable
Read-Only Memory (EPROM)
3. Electrically erasable
programmable read-only
memory (EEPROM)
25
Cache Memory: The cache is a
smaller and fast memory component
in the computer which is inserted
between the CPU and the main
memory. To make this arrangement
effective. The cache needs to be
much faster than the main Memory
Register: Register is the smallest holding
data element that is built into the
processor itself. These are memory
locations that can be directly accessible by
the processor. It holds a small amount of
data around 32-bits to 64-bits and may
hold an instruction, a storage address, or
any kind of data such as a bit sequence or
individual characters. 26
Magnetic
Storage
Devices
27
Magnetic Storage Devices
1. Floppy Disk
2. Hard Disk
3. Magnetic Card
4. Tape Cassette
28
Flash Memory Devices
1. USB Ports
2. FireWire Ports
3. Bluetooth Port
4. IrDA Port
34
BUSE
S
35
Bus
The electrically conducting path along
which data is transmitted inside any
digital electronic device.
A Computer bus consists of a set of
parallel conductors, which may be
conventional wires, copper tracks on a
PRINTED CIRCUIT BOARD, or microscopic
aluminum trails on the surface of a
silicon chip.
Each wire carries just one bit, so the
number of wires determines the largest
data WORD the bus can transmit: a bus
with eight wires can carry only 8-bit data
words, and hence defines the device as
an 8-bit device.
There are three types of bus lines:
Data bus 36
Address bus
Types of Buses
Data Bus: The data bus is a signal line for exchanging the data
between the CPU and the memory, and between the CPU and I/O, and
handles the data stored in the specified location. The data exchanged
includes numerical values for calculation, the calculation results, input
signals from external devices, and signals output to external devices.
Address Bus: The address bus is a signal line that specifies the location
of the memory and I/O. When exchanging data, it is necessary to specify
the takeoff-destination of the data or the storage destination of the data.
The address bus specifies this location.
Control Bus: The control bus is a signal line that specifies whether to
read or write to the location specified by the address bus. The memory
and I/O specified on the address bus receive the data which sent on the
data bus when instructed "Write" by the control bus. When instructed 37
"Read" by the control bus, the data is output to the data bus.
Word Size
16-bit: An older word size, common in the 1980s and early 1990s,
that allows for 65,536 unique memory addresses and is limited to 64
KB of addressable memory.
40
Machine Cycle
to a storage medium). 41
42
System Clock
A computer processor or CPU speed
is determined by the clock cycle,
which is the time between two
pulses of an oscillator.
Generally, the higher number of
pulses per second, the faster the
computer processor can process
information.
The clock speed is measured in Hz,
often either megahertz (MHz) or
gigahertz (GHz). For example, a 4
GHz processor performs
4,000,000,000 clock cycles per
second.
43
Types of the system clock on
computers
Real-Time Clock (Hardware
clock)
The Real-Time Clock (RTC) is the
main clock that is used to give the
time of the day for the system. It is
powered by a different power source
from the main system power.
Software clock
This is managed by the
operating system. It is used to
synchronize all other operations
within the computer system. It
synchronizes both the software and
hardware components of the compute
44
Input Devices
1. Keyboard
2. Pointing Devices
1. Mouse
2. Joystick
3. Light pen
4. Track Ball
5. Stylus
6. Touchpad
3. Scanner
4. Graphic Tablet
5. Microphone
6. Magnetic Ink Card
Reader(MICR)
7. Optical Character
Reader(OCR)
45
Output
Devices
Monitors
Cathode Ray Tube (CRT)
Flat-panel Display
Printers
Computer Speaker
Headphone
Projector
Plotter
Speech Generating Devices
Video Card
Braille Reader
GPS
46
Types
of
Printer
47
Operating System
An operating system (OS) is a program
that acts as an interface between the
system hardware and the user.
Moreover, it handles all the interactions
between the software and the hardware.
All the working of a computer system
depends on the OS at the base level.
Further, it performs all the functions like
handling memory, processes, the
interaction between hardware and
software, etc. Now, let us look at the
functions of operating system.
48
Types of Operating Systems
1. Batch OS
2. Distributed OS
3. Multitasking OS
4. Network OS
5. Real-OS
6. Mobile OS
49
50
Multiprogramm
ing
The concurrent residency of more than one
program in the main memory is referred as
multiprogramming.
Since multiple programs are resident in the
memory, as soon as the currently executing
program finishes its execution, the next
program is dispatched for its consumption.
Also, if the currently executing program asks
for input output resources, then meanwhile
another program is dispatched to the CPU for
execution.
The main objective of multiprogramming is:
Maximum CPU utilization. 51
Multiprocessin
g
• When one system is connected to more
than one processor which collectively
work for the completion of the task, it is
called as multiprocessing systems.
• Multiprocessing systems can be divided in
two types:
• Symmetric Multiprocessing: The
operating system here resides on one
processor and the other processors
run user's programs.
• Asymmetric Multiprocessing: The
OS runs on any available processor, or
all the processor simultaneously run 52
the user program.
Multithreading
Multithreading is a conceptual
programming paradigm where a process is
divided into a number of sub-processes
called as threads. Each thread is
independent and has its own path of
execution with enabled inter thread
communication.
"Thread is the path followed while
executing a program. Each thread has its
own program counter, stack and register."
A thread is a lightweight process.
53
Multitasking
Earlier when computers were invented, a
user was allowed to submit only job or
task at a time. But later with availability
of high-speed processor, one can submit
more than one task.
So the capability of OS to accept more
the one task per user is termed as
multitasking.
Multiple jobs are executed by the CPU
simultaneously by switching between
them.
The various job can be accepted from
same user or different users. There are 2 54
Any Question?
55