Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 - Consider a dual - core ( P 1 and P 2 ) SMP system with fully - associative caches, write - back, and

2- Consider a dual-core (P1 and P2) SMP system with fully-associative caches, write-back, and LRU replacement
policy. Each cache has four blocks (i.e., lines) labeled 0,1,2, and 3. The shared main memory consists of 8
blocks labeled 0,1,2,dots,7. Assume the same clock drives the processors and the memory bus and the following:
Each transaction (request/response) completes in one cycle.
In case of simultaneous bus requests from both processors, the priority is given in a round-robin fashion, i.e.,
P1,P2,P1 and so on..., i.e., if the bus was last acquired by P1 then P2 will be given the priority.
For the following two asynchronous sequence of memory-access events, where boldface (and shaded) numbers
are for writes and the remaining are for reads, trace the execution of these block accesses on the two processors
using the MESI coherence protocol.
P1: 0,0,0,1,1,4,3,3,5,5,5
P2: 2,2,0,0,7,5,5,5,7,7,0
Clearly indicate all the operations performed in each cycle in the "Comments" column; i.e., processor request
(PrRd-hit/miss or PrWr-hit/miss), bus request (BusRd (S or S'), BusRdX, BusUpgr), and whether a cache
(Flush) or main memory (MM responds) responds to complete the transaction. The first bus transaction is shown
below, where memory block number is indicated in parenthesis.
T indicates the cycle. For P1 and P2 columns, b? indicates when a request (read/write) is first issued for block b.0-3 columns
indicate the state of the cache block b(and memory block number indicated in parenthesis). B column indicates which processor
has access to the bus and h column indicates whether there was a cache hit.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visualizing Health And Healthcare Data Creating Clear And Compelling Visualizations To See How Youre Doing

Authors: Katherine Rowell ,Lindsay Betzendahl ,Cambria Brown

1st Edition

1119680883, 978-1119680888

Students also viewed these Databases questions

Question

Prepare a short profile of Lucy Clifford ?

Answered: 1 week ago

Question

Prepare a short profile of Rosa parks?

Answered: 1 week ago

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago

Question

Are there any questions that you want to ask?

Answered: 1 week ago