Let the cache size be k=3 the initial cache a,b,c and the request a,a,d,e,b,b,a,c,f,d,e,a,f,b,e,c: Request a a d e b b a c f d e a f b e c cache 1 a a d e e e e e e e e e e e e c cache 2 b b b b b b a a a a a a f f f f cache 3 c c c c c c c c f d d d d b b b cache miss x x x x x x x x Eight cache misses is a lot better. Selftest: Do the example for LIFO, LFU, RFU and look what happend. code in c++
Let the cache size be k=3 the initial cache a,b,c and the request a,a,d,e,b,b,a,c,f,d,e,a,f,b,e,c: Request a a d e b b a c f d e a f b e c cache 1 a a d e e e e e e e e e e e e c cache 2 b b b b b b a a a a a a f f f f cache 3 c c c c c c c c f d d d d b b b cache miss x x x x x x x x Eight cache misses is a lot better. Selftest: Do the example for LIFO, LFU, RFU and look what happend. code in c++
Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter6: Computing Components: Processors, Memory, The Cloud, And More
Section: Chapter Questions
Problem 21CT
Related questions
Question
Let the cache size be k=3 the initial cache a,b,c and the request a,a,d,e,b,b,a,c,f,d,e,a,f,b,e,c:
Request a a d e b b a c f d e a f b e c
cache 1 a a d e e e e e e e e e e e e c
cache 2 b b b b b b a a a a a a f f f f
cache 3 c c c c c c c c f d d d d b b b
cache miss x x x x x x x x
Eight cache misses is a lot better.
Selftest: Do the example for LIFO, LFU, RFU and look what happend.
code in c++
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning