Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume the initial value in 0x9cd4 is 100 and we have three threads running the following block of code concurrently. Note that each thread has
Assume the initial value in 0x9cd4 is 100 and we have three threads running the following block of code concurrently. Note that each thread has their own set of registers but all share the same address space.
0x115 mov 0x9cd4, %eax
0x11a add $0x2, %eax
0x11d mov %eax, 0x9cd4
Fill out the values for memory address 0x9cd4 and register %eax in the tables below after the execution of each instruction pointed by register %rip.
%rip in T1 | %rip in T2 | %rip in T3 | value in 0x9cd4 | value in %eax |
0x115 | - | - | ||
- | 0x115 | - | ||
0x11a | - | - | ||
- | 0x11a | - | ||
0x11d | - | - | ||
- | 0x11d | - | ||
- | - | 0x115 | ||
- | - | 0x11a | ||
- | - | 0x11d |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started