Docsity

CACHE MEMORY COMPUTER APPLICATIONS NOTES, Summaries of Computer Applications

Toggle sidebar
bg1
CACHE MEMORY
There is another type of high speed memory, known as Cache
memory, which is used to
increase the speed of processing by making current programs and
data available to the
CPU at a rapid rate. Cache memory is a relatively small, high
speed memory that stores
the most recent used instructions or data. It acts as a high-speed
buffer between main
memory and the CPU.The cache memory is placed in between CPU
and main memory.
Access time is the time it takes a device or program to locate
information and make it
available to the computer for further processing. Cache memory
access time is about 0.5
to 2.5 ns which is much less than that of the main memory. The
access time of main
memory is about 50-70 ns. Because of its very high cost, the
capacity of the cache
memory deployed is 2 to 3 percent of that of the main memory.
The access time of mass
storage devices such as hard disks are measured in milliseconds
(ms).
CPU CACHE
MEMO
RY
PRIMAR
Y
MEMORY
SECONDA
RY
MEMORY
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download CACHE MEMORY COMPUTER APPLICATIONS NOTES and more Summaries Computer Applications in PDF only on Docsity!

CACHE MEMORY

There is another type of high speed memory, known as Cache memory, which is used to increase the speed of processing by making current programs and data available to the CPU at a rapid rate. Cache memory is a relatively small, high speed memory that stores the most recent used instructions or data. It acts as a high-speed buffer between main memory and the CPU.The cache memory is placed in between CPU and main memory. Access time is the time it takes a device or program to locate information and make it available to the computer for further processing. Cache memory access time is about 0. to 2.5 ns which is much less than that of the main memory. The access time of main memory is about 50-70 ns. Because of its very high cost, the capacity of the cache memory deployed is 2 to 3 percent of that of the main memory. The access time of mass storage devices such as hard disks are measured in milliseconds (ms).

CPU

CACHE

MEMO

RY

PRIMAR

Y

MEMORY

SECONDA

RY

MEMORY

MEMORY HIERARCHIES Regist ers Cache Main Memory Magnetic Disks/Virtual Memory Magnetic Tapes,Remote Access etc

SECONDARY STORAGE You can note down the following points from the above figure:- ļ‚· Semiconductor memories are used mainly for primary storage. It stores programs and data which are currently needed by the CPU. ļ‚· The semiconductor memory is an electronic, static device. There are no moving parts in it. Some examples of semiconductor memory are RAM, ROM etc. Memory Magnetic Disks Magnetic Tapes Optical Disks

ļ‚· The semiconductor memory is faster, compact and lighter. It consumes less power. ļ‚· The magnetic and optical memories are slow compared to semiconductor memory. But they are cheaper than semiconductor memory. They are not static devices. They are either in the form of a rotating disk or tape. All computers contain both semiconductor as well as magnetic memory. The examples of magnetic memory are Hard-disk, floppy disk, magnetic disk and tapes CAPACITY Vs ACCESS TIME Access time ter^ Regis ) onds oSec (nan 2ns 0.5- Cach e ory^ Mem ) onds osec (nan s 2.5n 0.5- RAM ( 70ns 50- nan nds) oseco ge^ Stora^ Mass s) cond llise s(mi 20m 5-

  1. Direct (Random) Access Data can be accessed in any order. Each location has a unique address. Access time is almost same for all locations. Examples: Hard disk, CD-ROM. Key Point: ļ‚· Faster and more flexible than sequential access. ļ‚· Sequential vs Random Access (Difference) Feature Sequential Access Random Access Access Method In sequence Any order Speed Slow Fast Addressing No unique address Unique address Example Magnetic tape Disk, RAM ļ‚· Types of Memory Technologies Technology Medium Access Mode Volatile Access Time Cost Semiconductor Electronic Random Volatile Very fast High Magnetic Magnetic Sequential/Random Non-volatile Medium Moderate Optical Laser Random Non- volatile Slow Low ļ‚· Basic Storage Fundamentals

Binary Representation Computer stores data using 0 and 1 (binary). Called two-state system. Electronic Circuits ON (conducting) → 1 OFF (non-conducting) → 0 Magnetic Media One direction → 1 Opposite direction → 0 ļ‚· Important Terms Bit Smallest unit of data Value = 0 or 1 Byte 8 bits = 1 byte Represents one character ļ‚· Character Coding Uses binary to represent characters. Example: ASCII (American Standard Code for Information Interchange) ļ‚· Quick One-Line Points (For Revision) Sequential access = ordered access Random access = direct access Bit = smallest data unit Byte = 8 bits RAM = volatile memory Magnetic/Optical = non-volatile DIAGRAMS

Head → → → → (moves step by step) Disk: [A1] [A2] \ / \ / [A3] ← Direct access / [A4] [A5] BINARY STORAGE CONCEPT DIAGRAM Electronic Circuit: Switch ON → 1 Switch OFF → 0 [ ON ] = 1 [ OFF ] = 0 BIT AND BYTE REPRESENTATION 1 Byte = 8 Bits Example:

Bit: 1 0 1 0 1 1 0 0 ↓ (1 Byte) MAGNETIC STORAGE REPRESENTATION Magnetic Surface: → Direction 1 = 1 ← Direction 2 = 0 [ → ] [ ← ] [ → ] [ → ] 1 0 1 1 Here are MCQs for practice (with answers at the end): ļ‚· Memory Access Methods – MCQs

Which method accesses data in a fixed sequence? A) Random access B) Direct access C) Sequential access D) Parallel access

A) Magnetic tape B) RAM C) Paper storage D) Sequential file ļ‚· Memory Technology – MCQs

Semiconductor memory is: A) Magnetic B) Optical C) Electronic D) Mechanical

Which memory is volatile? A) Magnetic disk B) RAM C) CD-ROM D) Optical disk

Magnetic memory is generally: A) Volatile

B) Non-volatile C) Temporary D) Unstable

Optical memory uses: A) Electricity B) Magnetism C) Laser beam D) Sound waves

Which memory has the fastest access time? A) Optical B) Magnetic C) Semiconductor D) Tape ļ‚· Basic Storage Concepts – MCQs

The smallest unit of data is: A) Byte B) Bit

ASCII stands for: A) American Standard Code for Information Interchange B) Advanced System Code for Internet Interface C) Automatic Standard Code for Information Input D) None ļ‚· Mixed Concept MCQs

Which is an example of random access device? A) Tape B) Disk C) Paper D) Printer

Sequential access is suitable for: A) Random searching B) Monthly billing C) Gaming D) Real-time systems

Which is NOT a non-volatile memory? A) RAM B) Magnetic disk C) Optical disk D) Hard disk

Data in magnetic media is stored using: A) Voltage B) Light C) Magnetic polarity D) Sound

Access time in random access memory is: A) Different for each location B) Same for all locations C) Very slow D) Zero ļ‚· Answers

  1. C

ļ‚· Memory Technology

  1. What is semiconductor memory? Electronic memory used in computers (e.g., RAM).
  2. What is volatile memory? Memory that loses data when power is off.
  3. Give an example of volatile memory. RAM.
  4. What is non-volatile memory? Memory that retains data without power.
  5. Give one example of non-volatile memory. Magnetic disk. ļ‚· Basic Storage Concepts
  6. What is a bit? The smallest unit of data (0 or 1).
  7. What is a byte? A group of 8 bits.
  8. What is binary representation? Data represented using 0 and 1.
  9. What does ON state represent in positive logic?
  10. What does OFF state represent in positive logic?

ļ‚· Storage Media Concepts

  1. How is data stored in magnetic media?

Using magnetic polarity (direction).

  1. What does one magnetic direction represent?
  2. What does opposite magnetic direction represent?

ļ‚· Coding System

  1. What is ASCII? A code to represent characters using binary.
  2. Expand ASCII. American Standard Code for Information Interchange. ļ‚· Quick Revision (Super Short) Sequential = ordered access Random = direct access Bit = 0 or 1 Byte = 8 bits RAM = volatile