Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 21 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question 21 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might cause process X to move from the Ready/Suspended state to the Ready state? The OS detects that an 1/O operation has completed. The Os detects that some process has used up its time quantum. The Os detects that some process has exited from its critical section. All of the above. None of the above. ge 1: 2 3 Question 20 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might cause process X to move from the Blocked state to the Ready state? 5 6 8 9 An output operation initiated by process X completes. All of the child processes of process X have terminated. 11 12 Process X is granted access to a shared resource. 14 15 All of the above. None of the above. Page 1: 1 2 3 > Question 19 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might cause process X to move from the Running state to the Ready state? 4 6 Sun 7 9 8 The Os detects that all of primary storage has been allocated. An input operation initiated by another process completes. 20 11 12 Process X requests access to a shared resource. 3 14 15 All of the above. ! None of the above. Page 1: 1 2 3 Question 18 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might cause process X to move from the Blocked state to the Blocked/Suspended state? 4 6 5 7 The OS detects that an input operation has been completed by the DMA. 9 8 All of the child processes of process X have terminated. 10 11 12 The OS detects that all of primary storage has been allocated. 13 14 15 All of the above. None of the above. e 1: 3 2 Question 17 (7 points) The following question refers to a uniprocessor system where the OS uses the seven-state process model. Which of the following might cause process to move from the Running state to the Blocked state? 5 6 8 9 Process X opens an existing output file. Process X initiates an input operation on a valid file descriptor. 11 12 Process X requests access to a shared resource. 14 15 All of the above. None of the above. Page 1: 1 2 3 Question 16 (7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the executing process issues a "write" system call where all of the arguments are valid. Which of the following statements is correct? 4 5 6 8 9 7 The OS will move a process from the Running state to the Blocked state. - The OS will move a process from the New state to the Ready state. 10 11 12 The OS will move a process from the Blocked state to the Ready state. 13 14 15 The OS will move a process from the Running state to the Ready state. None of the above. 1: 2 3 ( Question 15 (7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the executing process issues a "getpid" system call where all of the arguments are valid. Which of the following statements is correct? 6 5 8 9 -- The Os will move a process from the Running state to the Ready state. 11 12 The OS will move a process from the Ready state to the Running state. 14 15 The OS will move a process from the Blocked state to the Ready state. The OS will move a process from the Running state to the Blocked state. None of the above Page 1: 2 3 1 Question 14 (7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the executing process issues a "fork" system call where all of the arguments are valid. Which of the following statements is correct? 4 6 5 7 8 9 10 11 12 The OS will move a process from the Blocked state to the Ready state. The OS will move a process from the Running state to the Blocked state. The OS will move a process from the New state to the Ready state. The Os will move a process from the Running state to the Halted state. 13 14 15 None of the above. Page 1: 1 2 3 Question 13(7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the executing process issues a "read" system call where all of the arguments are valid. Which of the following statements is correct? 4 5 6 7 8 9 The OS will move a process from the Ready state to the Running state. The OS will move a process from the Running state to the Ready state. 10 11 12 The Os will move a process from the Blocked state to the Ready state. 13 15 The OS will move a process from the Running state to the Halted state. None of the above. Page 1: 1 2 3 ( Question 12 (7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the OS responds to an interrupt caused by the current user process illegally attempting to execute a privileged instruction. Which of the following statements is correct? 4 5 6 7 8 9 The OS will move a process from the New state to the Ready state. 10 11 12 The OS will move a process from the Running state to the Blocked state. The OS will move a process from the Blocked state to the Ready state. 13 14 15 The OS will move a process from the Running state to the Ready state. None of the above. Page 1: 1 2 3 Question 11 (7 points) The following question refers to a uniprocessor system where the OS uses the five- state process model Assume the OS responds to an interrupt from the DMA module (1/O operation completed). Which of the following statements is correct? 4 5 6 7 8 9 The OS will move a process from the Running state to the Blocked state. The OS will move a process from the Blocked state to the Ready state. 10 11 12 The OS will move a process from the Running state to the Ready state. 13 14 15 The OS will move a process from the Blocked state to the Running state, None of the above. Page 1: 1 2 3 Question 107 points) The following question refers to a uniprocessor system where the OS uses the five- state process model Assume the OS responds to a "read" system call where all of the arguments are valid. Which of the following statements is correct? 4 5 6 7 The interrupt will cause both a mode switch and a process switch. 8 9 The interrupt will cause a mode switch, but not a process switch. 10 11 12 The interrupt will cause a process switch, but not a mode switch. 13 15 The interrupt will cause neither a mode switch nor a process switch. None of the above. Page 1: 2 3 1 Question 9 17 points) The following question refers to a uniprocessor system where the OS uses the five- state process model. Assume the OS responds to an interrupt from the quantum timer (process time quantum expired). Which of the following statements is correct? 4 5 6 7 8 9 The interrupt will cause both a mode switch and a process switch. The interrupt will cause a mode switch, but not a process switch. 10 11 12 - - The interrupt will cause a process switch, but not a mode switch. The interrupt will cause neither a mode switch nor a process switch. 13 14 15 None of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. How are knowledge and skills tested?

Answered: 1 week ago