MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ means current data or instruction that is being fetched may be needed soon.
A
Temporal Locality
B
Spatial Locality
C
Memory Reference
D
Space Reference
Explanation: 

Detailed explanation-1: -Temporal locality means current data or instruction that is being fetched may be needed soon. So we should store that data or instruction in the cache memory so that we can avoid again searching in main memory for the same data.

Detailed explanation-2: -Temporal locality is the tendency of programs to use data items over and again during the course of their execution. This is the founding principle behind caches and gives a clear guide to an appropriate data-management heuristic.

Detailed explanation-3: -Temporal Locality means that a instruction which is recently executed have high chances of execution again. So the instruction is kept in cache memory such that it can be fetched easily and takes no time in searching for the same instruction.

Detailed explanation-4: –The temporal aspect of the locality of reference means that the recently executed instruction wont be executed soon.-Explanation: The spatial aspect of locality of reference tells that the nearby instruction is more likely to be executed in future.

Detailed explanation-5: -There are two basic types of reference locality – temporal and spatial locality. Temporal locality refers to the reuse of specific data and/or resources within a relatively small time duration. Spatial locality (also termed data locality) refers to the use of data elements within relatively close storage locations.

There is 1 question to complete.