1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ludmilka [50]
3 years ago
5

The four conditions (mutual exclusion, hold and wait, no preemption and circular wait) are necessary for a resource deadlock to

occur. Give an example to show that these conditions are not sufficient for a resource deadlock to occur. When are these conditions sufficient for a resource deadlock to occur
Business
1 answer:
Evgen [1.6K]3 years ago
5 0

Explanation:

The conditions sufficient for a resource deadlock to occur is when a  deadlock will  prevail for process A, B, and C when two resources R and S; if only one instance of each resources is allowed.

Solution

Deadlock conditions

A deadlock is a situation where two or more processes request for same critical resource at the same time.

The mutual exclusion applies a restriction to a resource when the resource is used by any process, it should become unavailable for the other resources

The hold and wait allocations explains that any process which is allocate resources must hold them; till all needed resources are nor sure.

In the meantime, if any other processes need a resource which is held by another process, then the latter will release the resource to prevent deadlock.

No pre-emption states that the operating system can grant access to resources to another process while it is in use by another process; depending on the priority , to prevent deadlock.

Circular wait should not be implemented so that resources being requested by process are allocated when they get free.

Now,

Three processes A, B, and C functions on a system, having two distinct resources R and S.

The resource  R has one instant active while resource S has two instances available.

The instance of R is allocated to a process A after request. first instance of resource S is allocated to process B, and second instance of resource S is allocated to process C.

When a request is placed by process B for resource R, then the resource is not available for execution. the process A request for resource S which is used by both C and B.

All the four conditions prevail in this situation; yet deadlock does not occur.

The resource S is released by process C and is allocated to process A. when process A finishes, it releases resources and resources R is allocate d to process B.

Hence all three processes end without a deadlock.

However, the deadlock will prevail for process A, B, and C when two resources R and S; if only one instance of each resources is allowed.

You might be interested in
You have been asked by the president of your company to evaluate the proposed acquisition of a new special-purpose truck for $25
JulijaS [17]

Answer:

Please find the complete solution in the attachment file.

Explanation:

Please find the attachment table for the 3 years of cash flow:

5 0
3 years ago
Jimmy's Peanut Farm wants to increase the quantity of peanuts that it sells by 1 percent. The price elasticity of demand for pea
slega [8]

Answer: Jimmy's Peanut Farm has to decrease its prices by 2.5% in order to achieve a 1% increase in the quantity of peanuts it sells.

Jimmy's Peanut Farm can increase the quantity sold by 1% only when the demand for peanuts increases. Demand for peanuts will increase only when the price of peanuts decrease. The Price Elasticity of Demand measures the responsiveness of demand to a percentage change in price.

The formula for Price Elasticity of Demand (PED) is given by the formula:

\mathbf{PED = \frac{percentage change in quantity}{percentage change in price}}

We have:

Percentage increase in quantity               1%  or 0.01

Price Elasticity of Demand (PED)               0.40

Re-arranging the PED formula above we get,

\mathbf{percentage change in price}= \frac{percentage change in quantity}{PED} *100}

Substituting the values in the equation above we get,

{percentage change in price} = \frac{0.01}{0.4}*100 =2.5



5 0
3 years ago
A team becomes more cohesive and clarifies members' roles and responsibilities, team goals, and team processes during which stag
Alexeev081 [22]
Norming is the stage when a team becomes more cohesive and clarifies members' roles and responsibilities, team goals, and team processes
6 0
3 years ago
Assuming that the direct materials used are $1880000, compute the total manufacturing costs using the following information.
Scilla [17]

Answer:

D. $3240000.

Explanation:

Particulars                               Amount ($)        Amount ($)

Direct materials used                                          1,880,000

Direct Labor                                                         760,000

<u>Manufacturing Overheads </u>

Factory Utilities                          150,000

Indirect Labor                             50,000

Factory Depreciation                 <u>400,000</u>           <u>600,000</u>

Total Manufacturing cost                                  <u>$3,240,000</u>

6 0
2 years ago
What is a significant part of the step of evaluating controls and determining which controls to implement?
Kisachek [45]

Answer:

"CBAs" would be the appropriate answer.

Explanation:

  • The CBAs system was intended to incorporate various business practices and knowledge across multiple security experts as well as provide a structured process to match application development policies and procedures with either the institution's threat analysis.  
  • As either a consequence, a structure is developed to enhance their safety infrastructure of business process development.
6 0
2 years ago
Other questions:
  • Builder Products, Inc., uses the weighted-average method in its process costing system. It manufactures a caulking compound that
    5·1 answer
  • "a promise to your mother to refrain from going to bed later than 11:00 p.m. on a school night is what type of consideration?"
    6·1 answer
  • to earn as much interest as possible, you should open a savings account that earns _______ interest and has the ______ interest
    14·1 answer
  • The actual cash received from cash sales was $3,930 and the amount indicated by the cash register total was $3,880. the journal
    15·1 answer
  • A company reported annual wages expense of $348,000 and insurance expense of $42,000. During the year, wages payable decreased f
    8·1 answer
  • Freight-in and purchase returns and allowance are not deducted from purchases to determine the net delivered cost of purchases.
    13·1 answer
  • Like a good economist, you calculated the opportunity cost of getting your college degree. suppose that at your university, you
    8·2 answers
  • In the simplified model with proportional taxation introduced at the end of chapter 5, there can be two equilibria, one with a h
    6·1 answer
  • Product differentiation refers to: consumers who sort and group goods based on similar characteristics. firms who offer similar
    15·1 answer
  • Describe how consumers have influence the success of products in recent years
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!