Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) The following shows two threads, Thread A and Thread B, to be run on supersca

ID: 3798208 • Letter: 1

Question

1) The following shows two threads, Thread A and Thread B, to be run on superscalar machine with 2 slots. Assume that before the code is run a, b, x and y are 0. Show how each would execute on Fine-Grained Multithreading. What are values of a, b, x and y at the end of Fine MT completion?

Now thread A and thread B are run on 2 separate cores of a processor. What are the possible values of a, b, x, and y?

Core 1: Thread A.

Core 2: Thread B.

Show both configurations, a) core1 scheduled first followed by core 2 b) core 2 scheduled first followed by core 1.

Time Thread A Thread B A1A2 B2 A4 B3B4 A5A6A7 A1 : x = y+5 BI : a=y+3 A2: a=br7 B2: x=a+ y A3: y=x"a B3: x= b+7 A4: a=x+y B4 : y = a+7 A5: x+=5 A6: a=y+7 A7: b-y+b h-23 3y77 yaba Aaxxy 1234 A BBBB 57a 7b 5yy a ya ab TT-23-4 AAA 1234567

Explanation / Answer

Possible values of a,b,x and y is as follows:

a: 0

b: 1

x: 2

y:3

The values I got after I calculating the equations from the thread1 values followed by thread 2