a) Suppose two threads T1 and T2 are running concurrently in the same process with a single CPU . Suppose T1 does “Load X into register R1” machine instruction. Then the CPU scheduler switches the CPU...


a)  Suppose two threads T1 and T2 are running concurrently in the same processwith a single CPU.  Suppose T1 does “Load X into register R1” machine instruction. Then the CPU scheduler switches the CPU to T2. Will T2 see the same vaue of R1 as loaded here by T1? (YES or NO)? Explain in less than 50 words. Be specific.



(b) Suppose two threads T1 and T2 are running concurrently in the same processwith a single CPU.   Is it possible to have a moment (time instant) where both threads have made a request to Memory Unit to read some data (ex. as part of a “Load … into register …” instruction) and Memory Unit has not yet completed either of these two requests? Explain in less than 50 words.




Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here