MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In ____ cache memory, the word is written into cache and main memory at the same time.
A
copy-back
B
write-through
C
copy-both
D
write-back
Explanation: 

Detailed explanation-1: -Write through is a storage method in which data is written into the cache and the corresponding main memory location at the same time. The cached data allows for fast retrieval on demand, while the same data in main memory ensures that nothing will get lost if a crash, power failure, or other system disruption occurs.

Detailed explanation-2: -The simplest answer is to write to both the cache and main memory at the same time. This is called a write-through policy. The main memory then always contains the same data as the cache. This is important if there are any other devices in the computer that also access main memory5.

Detailed explanation-3: -The cache augments, and is an extension of, a computer’s main memory. Both main memory and cache are internal random-access memories (RAMs) that use semiconductor-based transistor circuits. Cache holds a copy of only the most frequently used information or program codes stored in the main memory.

Detailed explanation-4: -In order to be close to the processor, cache memory needs to be much smaller than main memory. Consequently, it has less storage space. It is also more expensive than main memory, as it is a more complex chip that yields higher performance. What it sacrifices in size and price, it makes up for in speed.

Detailed explanation-5: -Fully associative mapping In fully associative type of cache memory, each location in cache stores both memory address as well as data.

There is 1 question to complete.