Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .