Q5. Parallel Execution [10point]
Two threads (A and B) are concurrently running on a dual-core
processor. Assume that the value at address 0x1000 is initialized
to 71.
Thread A
X1: st 0x1, (0x1000)
X2: ld R1, (0x1000)
X3: st 0x2, (0x1000)
X4: ld R2, (0x1000)
Thread B
Y1: st 0x3, (0x1000)
Y2: ld R3, (0x1000)
Y3: st 0x4, (0x1000)
Y4: ld R4, (0x1000)
List all possible values that can be stored in R3 after both
threads have finished executing. Also, Write one possible
instruction execution order for each possibility you presented.
Q5. Parallel Execution [10point] Two threads (A and B) are concurrently running on a dual-core processor. Assume that th
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Q5. Parallel Execution [10point] Two threads (A and B) are concurrently running on a dual-core processor. Assume that th
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!