1. Homepage
  2. Exam
  3. [2021] CMPSC311 Introduction to Systems Programming - Midterm Exam - Q10 Cache Operation

[2021] CMPSC311 Introduction to Systems Programming - Midterm Exam - Q10 Cache Operation

This question has been solved
Engage in a Conversation

Question 10

  CourseNana.COM

index CourseNana.COM

0 CourseNana.COM

1 CourseNana.COM

2 CourseNana.COM

3 CourseNana.COM

key CourseNana.COM

5 CourseNana.COM

3 CourseNana.COM

7 CourseNana.COM

8 CourseNana.COM

access_time CourseNana.COM

1 CourseNana.COM

2 CourseNana.COM

3 CourseNana.COM

4 CourseNana.COM


CourseNana.COM


CourseNana.COM

A fully-associate cache with four entries is initialized as above, where values corresponding to the keys are not shown. The following cache operations are performed after initialization: CourseNana.COM

lookup key 5 at time 5 CourseNana.COM

insert key 6 at time 6 CourseNana.COM

lookup key 9 at time 7 CourseNana.COM

lookup key 3 at time 8 CourseNana.COM

insert key 13 at time 9 CourseNana.COM

lookup key 8 at time 10 CourseNana.COM

lookup key 5 at time 11 CourseNana.COM

insert key 9 at time 12 CourseNana.COM

lookup key 1 at time 13 CourseNana.COM


CourseNana.COM


CourseNana.COM

(5 points) (a) Describe the contents of the cache at the end of the above operations. CourseNana.COM

(2 points) (b) What is the hit ratio of the cache at the end of the above operations? CourseNana.COM

(3 points) (c) What is the average memory access time for the workload if a cache access cost is 10 usec and miss cost is 2000 usec? CourseNana.COM

  CourseNana.COM

Get the Solution to This Question

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
CMPSC311代写,Introduction to Systems Programming代写,PSU代写,The Pennsylvania State University代写,Penn State代写,CMPSC311代编,Introduction to Systems Programming代编,PSU代编,The Pennsylvania State University代编,Penn State代编,CMPSC311代考,Introduction to Systems Programming代考,PSU代考,The Pennsylvania State University代考,Penn State代考,CMPSC311help,Introduction to Systems Programminghelp,PSUhelp,The Pennsylvania State Universityhelp,Penn Statehelp,CMPSC311作业代写,Introduction to Systems Programming作业代写,PSU作业代写,The Pennsylvania State University作业代写,Penn State作业代写,CMPSC311编程代写,Introduction to Systems Programming编程代写,PSU编程代写,The Pennsylvania State University编程代写,Penn State编程代写,CMPSC311programming help,Introduction to Systems Programmingprogramming help,PSUprogramming help,The Pennsylvania State Universityprogramming help,Penn Stateprogramming help,CMPSC311assignment help,Introduction to Systems Programmingassignment help,PSUassignment help,The Pennsylvania State Universityassignment help,Penn Stateassignment help,CMPSC311solution,Introduction to Systems Programmingsolution,PSUsolution,The Pennsylvania State Universitysolution,Penn Statesolution,