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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here