Assuming write-back caches, private L1 data caches (L1Ds) (no L2), shared memory, and a MESI coherence policy, indicate in the cache tables what would be the values (V) of the variables X and Y and their coherency (C) state (either M, E, S or I) in the L1D's for a dual core processor with the following sequence of reads and writes. As shown in the table, the coherency (C) state in Step 0 (the initial coherency state) of both variables in both caches is I (invalid). If a value doesn't change, you may leave that entry blank. You may use either the state transition diagram or the table given below to reason about cache coherence. Step 0: Step 1: Step 2: Initially, X =3, Y = 5 in the shared memory, processor caches are empty Core 1 reads X (from the shared memory) Core 2 reads X Core 1 writes X = 2 Core 1 writes Y = 6 Step 3: Step 4: Step 5: Core 2 reads Y Please fill in the following cache and shared memory tables (no further explanation for your answers is required).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Assuming write-back caches, private L1 data caches (L1Ds) (no L2), shared memory, and a MESI coherence
policy, indicate in the cache tables what would be the values (V) of the variables X and Y and their coherency
(C) state (either M, E, S or I) in the L1D's for a dual core processor with the following sequence of reads and
writes. As shown in the table, the coherency (C) state in Step 0 (the initial coherency state) of both variables
in both caches is I (invalid). If a value doesn't change, you may leave that entry blank. You may use either the
state transition diagram or the table given below to reason about cache coherence.
Step 0:
Step 1:
Step 2:
Step 3:
Step 4:
Initially, X =3, Y = 5 in the shared memory, processor caches are empty
Core 1 reads X (from the shared memory)
Core 2 reads X
Core 1 writes X = 2
Core 1 writes Y = 6
Step 5: Core 2 reads Y
Please fill in the following cache and shared memory tables (no further explanation for your answers is required).
Core 1's L1D Cache (private)
Step 1 Step 2
Step 3
V с
V с
V C
X
Y
X
Y
X
Y
Step 0
V C
I
I
Step 0
V C
I
I
-
Core 2's L1D Cache (private)
Step 1
Step 2 Step 3
V с
V с
V с
Step 0 Step 1
V
V
3
5
Shared memory
Step 2
V
Step 4
V с
Step 3
V
Step 4
V C
Step 4
V
Step 5
V C
Step 5
V с
Step 5
V
Transcribed Image Text:Assuming write-back caches, private L1 data caches (L1Ds) (no L2), shared memory, and a MESI coherence policy, indicate in the cache tables what would be the values (V) of the variables X and Y and their coherency (C) state (either M, E, S or I) in the L1D's for a dual core processor with the following sequence of reads and writes. As shown in the table, the coherency (C) state in Step 0 (the initial coherency state) of both variables in both caches is I (invalid). If a value doesn't change, you may leave that entry blank. You may use either the state transition diagram or the table given below to reason about cache coherence. Step 0: Step 1: Step 2: Step 3: Step 4: Initially, X =3, Y = 5 in the shared memory, processor caches are empty Core 1 reads X (from the shared memory) Core 2 reads X Core 1 writes X = 2 Core 1 writes Y = 6 Step 5: Core 2 reads Y Please fill in the following cache and shared memory tables (no further explanation for your answers is required). Core 1's L1D Cache (private) Step 1 Step 2 Step 3 V с V с V C X Y X Y X Y Step 0 V C I I Step 0 V C I I - Core 2's L1D Cache (private) Step 1 Step 2 Step 3 V с V с V с Step 0 Step 1 V V 3 5 Shared memory Step 2 V Step 4 V с Step 3 V Step 4 V C Step 4 V Step 5 V C Step 5 V с Step 5 V
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Memory
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education