Question
Consider the following events (same as in the previous question, but added time instance 6) At time 5. P1 executes a command to read from
Consider the following events (same as in the previous question, but added time instance 6) At time 5. P1 executes a command to read from disk unit 3. At time 6: P1 executes the load instruction At time 15: P5's time slice expires. At time 18: P7 executes a command to write to disk unit 3. At time 20: P3 executes a command to read from disk unit 2. At time 24: P5 executes a command to write to disk unit 3. At time 28: P5 is swapped out. At time 33: An interrupt occurs from disk unit 2. P3's read has completed At time 36: An interrupt occurs from disk unit 3. Pi's read has completed At time 38: P3 terminates. At time 40: An interrupt occurs from disk unit 3. P5's write has completed. At time 44: P5 is swapped back in. At time 48: An interrupt occurs from disk unit 3. P7's write has completed. Consider the events at time instances 5, 6, 15. 28, 33, 38. * Which time instance(s) would have an interrupt occurring? * At which time instance(s) the current running process would switch to kernel mode? * At which time instance(s) would a process switch definitely occur? Give the list of the time instance(s) for the above questions in numerical order and separate them by comma with no space (e.g., 5, 15,28). a) Interrupts occur at time instances ??. b) The current running process would switch to kernel mode at time instances ?? due to the interrupt. c) A process switch would definitely occur at time instances ??
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