

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Mishra; Class: COMPU ARCHITECT PRIN; Subject: COMPUTER DESIGN/ARCHITECTURE; University: University of Florida; Term: Fall 2008;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


You are not allowed to take or give help in completing this assignment. Submit the PDF version of the submission in e-Learning website before the deadline. Please include the sentence in bold on top of your submission: “ I have neither given nor received any unauthorized aid on this assignment ”.
Problem 1
Problem 2
Spin on regular lock (LD) is a read operation on the block. It does not need invalidate other copies of the block in other processor’s caches.
(a) spinlock using EXCH Transaction P0 P1 P2 P
(1) Write-invalidate M[0(R1)]; M[0(R1)] in EX-state
Invalidate M[0(R1)] Invalidate M[0(R1)] Invalidate M[0(R1)]
(2) M[0(R1)]=0 in SH LD M[0(R1)] M[0(R1)]=0 in SH
M[0(R1)]=0 in SH
M[0(R1)]=0 in SH
(3) Inv. M[0(R1)] EXCH R2, 0(R1) M[0(R1)]=1 in EX
Inv. M[0(R1)] Inv. M[0(R1)]
(4) Inv. M[0(R1)] EXCH R2, 0(R1) M[0(R1)]=1 in EX
(5) Inv. M[0(R1)] EXCH R2, 0(R1) M[0(R1)]=1 in EX
(6) LD M[0(R1)] M[0(R1)]=1 in SH
M[0(R1)]=1 in SH
(7)