1.

Which of the following cache mapping can prevent bus thrashing?(a) fully associative(b) direct mapping(c) n way set associative(d) 2 way associativeI got this question in an interview for job.This question is from Size of Cache in chapter Memory Systems of Embedded Systems

Answer»

The correct choice is (c) n way set ASSOCIATIVE

To explain: Only one data can be accessed in direct mapping that is, if one word is accessed at a time, all other words are discarded at the same time. This is known as BUS thrashing which can be SOLVED by splitting up the caches so there are 2,4,..n possible entries AVAILABLE. The major advantage of the set associative cache is its capability to prevent the bus thrashing at the EXPENSE of hardware.



Discussion

No Comment Found

Related InterviewSolutions