Question: Topic is Operating Systems. Some questions could have multiple correct answers. Choose all correct answers. a point for each correct answer selected. a half-point off
Choose all correct answers.
a point for each correct answer selected.
a half-point off for each incorrect answer selected.
check check chack QUESTION 11 Mutual exclusion OA. means critical code can only be executed by one process at a time. OB. is only an issue for related processes (i.e., parent and child). oc. is a requirement for the readers/writers problem. OD. is a necessary componenet of the producer/consumer problem. Hint: mutual exclusion means processes should not execute critical code at the same time; mutual exclusion is a requirement for both readers/writers and producer/consumer. QUESTION 12 A monitor supports synchronization by the use of OA. condition variables accessible only within the monitor. OB. message queues. OC. semaphores. Hint: a monitor does not use IPC shared services. QUESTION 13 In the Strong Readers/Writers problem OA. multiple readers may read while one writer is writing. OB. multiple writers may write simultaneously. Oc. waiting writers take precedence over waiting readers. D. waiting readers take precedence over waiting writers. Hint: writing is an exclusive event; the purpose of strong readers is to reduce* starvation - since multiple readers can read let them all in if any are waiting - you are less likely to have starvation if you do so - although it does not prevent the writers from starving. QUESTION 14 If two concurrent processes are unaware of each other OA. it is possible to deadlock on a renewable resource. OB. mutual exclusion is still needed on shared resources. OC. it is possible that one process may suffer starvation. OD. data coherence is a potential problem. Hint: Data coherence is only an issue if processes are sharing an object-hence at least indirectly aware of each other; it is still possible to deadlock on a renewable (reusable) resource - imagine a process wanting access to a device that the kernel thinks is in use by another process when in fact that process crashed before releasing the device. QUESTION 15 On a multiprocessor machine, one machine instruction can carry out OA. two atomic actions in a single instruction cycle. OB. one atomic action in less than one instruction cycle. Hint: atomic action is one that cannot be further divided check
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
