Cache
Lesson 1 of 1
  1. 1
    It’s a nice day out today and you have decided to work in your garden. However, you realize you don’t have any fertilizer so you go to the garden store to pick some up. Getting the fertilizer tak…
  2. 2
    What is a memory hierarchy and why is it important? Let’s answer the second part of that question by looking at the graph below: ![Performance gap of processors and memory](https://static-assets…
  3. 3
    Cache memory can hold more data than the processor but less than main memory. Its size means data retrieval is slower than that within the processor but is faster than that from main memory. Cach…
  4. 4
    When the data requested from the processor is in the cache, a cache hit occurs: A cache hit In the animati…
  5. 5
    When the data requested from the processor is not in the cache, a cache miss occurs: A cache miss The above …
  6. 6
    What happens when the cache is full and a cache miss occurs? The incoming data will need to replace an existing entry in the cache. But, which entry? The decision about which populated entry will …
  7. 7
    Up until now, data from the main memory has been placed in any block of the cache. What if each location in the main memory can be placed in specific cache blocks? Associating memory locations to s…
  8. 8
    So what about writing to memory? When the processor writes data to memory it is always written to cache. Just like a cache read, the memory address is searched within the tags of the cache entrie…
  9. 9
    Nice job reaching the end of this lesson! Here is a summary of the topics we covered: - Including cache memory in the memory hierarchy helps bridge the processor-memory performance gap. - Copies o…

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo