Unit 4 COMPUTERS Hardware 1
Unit 4 COMPUTERS Hardware 1
. 17 - Hardware
The first computers had fixed programs and changing a computer program required physically
rewiring or redesigning the machine.
The idea of creating a general-purpose computer developed in 1930s and 1940s through the
work of Alan Turing and John Von Neumann.
A computer in which the processing instructions are stored in memory with the data is called a
stored-program computer or a Von Neumann architecture computer
Bus
RAM
CPU
Silver lines on the motherboard
are BUSES
Fetch-Decode-Cycle
The fetch-decode-execute cycle is the process the computer goes through when processing
instructions. The cycle is performed constantly from boot up, until the computer is shut-down.
INPUT & OUTPUT DEVICES
INPUT DEVICES
Pointing Devices
Biometric devices
1. Webcams or Cameras: They use either CCDs or CMOS sensors to capture digital imagery
& video.
2. Barcode Reader: to scan barcode lines.
3. Scanner: used to create digital copies of physical documents
4. OCR: used to scan printed text form physical documents and convert into machine-
readable text.
5. Light sensor: Automatic brightness adjustment on displays, Energy efficient lighting
controls and proximity sensing
Audio
Sensors
OUTPUT DEVICES
Output devices are hardware components that allow a computer or electronic device to display
or present information to the user.
• Display Output
• Physical Output
• Audio Output
• Haptic Output
Display Output Devices
1. Printer: Printers produce hard copies of digital documents or images on paper. There
are various types of printers, including inkjet, laser, and dot matrix printers. The
common types of printers are Laser, Inkjet and Bubblejet.
2. Plotters: used in engineering, design, and architecture. They draw detailed, high-
precision graphics on paper or other materials.
1. Speakers: produce audio output, allowing the computer to play sound, music, or
other auditory information.
2. Headphones/ Headsets: These devices provide audio output to the user and are
typically used for private listening or communication purposes.
RAM
▪ Primary storage device (Main memory) referred to as RAM.
▪ It’s an integral part of a computer.
▪ Function: temporarily holding data and instructions that
CPU uses for data & instructions.
▪ RAM is typically measured in gigabytes. (GB)
▪ RAM is volatile-once power is lost all data is lost as well.
▪ It is the memory between Secondary storage & CPU>
▪ Faster than secondary storage devices.
▪ Data can be read from & written to RAM at very high speed, allowing for quick access to
the data needed by the CPU.
Writing
READING
When the CPU retrieves the data stored at a given address, is called reading.
CPU must specify which part of the memory to read from. Each memory location has
unique location.
Writing
Address 3 10110000
Address 2 10101010 CPU
Address 1 11110000
Address 0 10111001 Reading
ROM
Why cache?
Major reason for incorporating cache in system is that CPU is much faster than RAM & needs a
place to store information that can be accessed rapidly. The cache facilitates the system to
catch up with processor’s speed.
Virtual Memory
1. A Process running on the computer may need to store data in the physical memory.
2. If there is no free memory (RAM is full), the memory manger (utility program of OS) will
swap out some of the data in RAM to the swap area. (Part of Hard Disk)
3. Then, it will ‘Swap in’ the requested data into the free area.
4. Usually, the least recently used stored data is swapped out.
1. The read / write speed of a hard drive is much slower than RAM. (The technology of
a hard drive is not made for accessing small pieces of data at a time)
2. If the system has to depend heavily on virtual memory, it causes a significant drop in
performance.
3. Often the OS has to constantly swap information back and forth between RAM and
Hard drive, which operates all the time.it is called disk thrashing. It slows down the
execution of the programs.
NOTE: The more RAM, less virtual memory will be needed. If we want to improve
performance of a computer, The capacity of RAM must be upgraded.
Term ‘Spooling’ means putting jobs in a special area called a buffer, in a memory or on a disk,
so that slower peripheral devices, such as printers can work at their own pace with without
slowing down the processor.