Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whats's the difference between Direct Mapping and Four-way Set Associative? They both mean that certain blocks of the cache are associated with certain parts of the main memory.

The only difference I see is that the Four-way mapping limits it to only four cache blocks while Direct Mapping may be more or less than four. Am I right to say this?

share|improve this question

migrated from stackoverflow.com Apr 29 '13 at 14:33

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 4 down vote accepted

Definitive textbook treatment IMO is Patterson-Hennessy. Online see wikipedia CPU_cache#Associativity.

Not right regarding Direct Mapping: "each entry in main memory can go in just one place in the cache".

share|improve this answer
    
Thank you very much. –  Adegoke A Apr 28 '13 at 21:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.