I-20 Computer Fundamentals
This extremely fast memory would store data that are frequently accessed. This achieves the quickest
possible response time to the CPU. However, it is very expensive.
Consider an example of library system. When a person comes into the library and asks for a book,
the librarian searches for the requested book in the bookshelves, retrieves the book and delivers it to the
person. After the person reads the book, it is returned to the library. At the same time, if any other person
comes in requesting the same book, which is still placed on the librarian’s desk, the librarian does not
have to go through the process of searching the book in the bookshelves. This results in saving of pre-
cious time in retrieving the requested book, and thus improving the efficiency of the work. This analogy
can be related to computer’s cache system. The computer uses logic to determine which data are the
most frequently accessed and keeps them in the cache.
17. Discuss different types of cache.
Ans: A cache is a piece of very fast memory, made from high-speed static RAM that reduces the
access time of the data. It is generally incorporated in the processor, where valuable data and program
segments are kept. Cache memory can be categorized into three levels, which are described as follows:
• L1 cache: This cache is closest to the processor and hence is termed as ‘primary’ or L1 ‘cache’.
Each time the processor requests information from memory, the cache controller on the chip uses
special circuitry to first check if the requested data are already in the cache. If it is present, then
the system is spared from time-consuming access to the main memory. In a typical CPU, primary
cache ranges in size from 8 to 64 KB, with larger amounts on the newer processors. This type of
cache memory is very fast because it runs at the speed of the processor since it is integrated into it.
• L2 cache: This cache is larger but slower in speed than L1 cache. It is used to see recent accesses
that is not picked by L1 cache and is usually 64 to 2 MB in size. An L2 cache is also found on the
CPU. If L1 and L2 cache are used together, then the missing information that is not present in L1
cache can be retrieved quickly from the L2 cache.
• L3 cache: This cache memory is an enhanced form of memory present on the motherboard of
the computer. It is an extra cache built into the motherboard between the processor and the main
memory to speed up the processing operations. It reduces the time gap between request and
retrieval of the data and instructions thereby accessing data much more quickly than main memory.
L3 cache is being used with processors nowadays having more than 3 MB of storage in it.
18. Distinguish between primary memory and secondary memory.
Ans: The two basic types of memories are primary memory and secondary memory. Some of the
differences between these two memories are listed in Table 1.3.
Table 1.3 Differences between Primary Memory and Secondary Memory
Primary Memory Secondary Memory
• It is directly accessed by the CPU for the purpose of storing and
retrieving information.
• It is accessed with the help of address bus and data bus.
• It does not hold the data when the power is turned off, that is, it
is volatile in nature.
• It is much faster than secondary memory.
• It is more costly as compared to secondary memory. Therefore,
a computer system usually comprises a small primary memory.
• It is not directly accessible by the CPU.
• It is accessed by using input/output channels.
• It holds the data even when the power is turned off, that is,
it is non-volatile in nature.
• It is comparatively slower.
• Secondary memory devices are less costly. Therefore,
a computer system usually comprises much larger
secondary memory.
M01_ITL-ESL4791_01_SE_C01.indd 20 12/22/2012 4:52:22 PM