Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 for each incorrect answer selected.
image text in transcribed
QUESTION 1 What are the sufficient conditions for deadlock? OA. mutual exclusion OB. hold & wait OC. no preemption OD. circular wait check she Hint: A,B,C are necessary but not sufficient conditions since you may or may not have deadlock with these present: if you add circular wait to the other 3 conditions then you know you have deadlock QUESTION 2 A reusable resource that can safely be used by only one process at a time OA. can be the target of deadlock. OB. is not depleted by use. Oc. can be created if more is needed. OD. is destroyed when a process no longer needs it. Hint: a resource requiring mutual exclusion can be the target of deadlock; a *consumable* resource is one that can be created produced) and destroyed (consumed) as needed. QUESTION 3 An example of a reusable resource is OA. the CPU. OB. physical memory. OC. a semaphore. OD. a UNIX pipe. Hint: hardware is reusable. a semaphore is like a signal - the process that grabs the semaphore has *consumed it. QUESTION 4 A consumable resource OA. can safely be consumed by multiple processes simultaneously. OB. is one that can be created (produced) and destroyed (consumed) as needed. oc. is the type of resource in the producer-consumer problem. OD. includes resources such as signals, file buffers and UNIX pipes. Hint: consummable resources require mutual exclusion.; resource that can be depleted is consumable. QUESTIONS In the Resource Allocation Denial approach to deadlock avoidance, OA. the three necessary conditions for deadlock are allowed to exist. OB. there must be at least one safe state. Oc. no process sequence will result in a deadlock. OD. at least one process transition will not result in deadlock. Hint: a resource allocation denial approach is a deadlock avoidance strategy, which means that the 3 necessary conditions are allowed to exist (just avoided); a safe state is one in which a process sequence does not result in deadlock - many sequences may result in deadlock but the process is only allowed to take a sequence that does not. check

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

Probability & Statistics For Engineers & Scientists

Authors: Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying

7th Edition

9789813131279, 130415294, 9813131276, 978-0130415295

Students also viewed these Databases questions