GATE Computer ScienceVery hardGATE CS

Three processors P0, P1, P2 use a snooping MESI write-invalidate protocol on one block that is initially invalid everywhere. A read miss loads in E if no other cache holds the block and in S otherwise (a cache in M supplies the data and writes it back to memory). A write to S issues an upgrade (invalidate) transaction; a write miss issues a read-for-ownership; a write to E or M is silent. The accesses are P0 R, P0 W, P1 R, P1 R, P2 R, P2 W, P2 W, P0 R, P1 W, P1 R. How many bus transactions occur and how many write-backs to memory happen, as a pair?

  1. A. (6, 2)
  2. B. (6, 3)
  3. C. (7, 2)
  4. D. (5, 2)

Correct answer: A. (6, 2)

P0 R (BusRd, E), P0 W silent (M), P1 R (BusRd, P0 writes back, both S), P1 R hit, P2 R (BusRd), P2 W (upgrade), P2 W silent, P0 R (BusRd, P2 writes back), P1 W (read-for-ownership), P1 R hit. Bus transactions: 6; write-backs: 2.

More Computer Organization and Architecture questions

Exams that ask this topic