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]
4 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]4 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
A cash register tape shows cash sales of $3180 and sales taxes of $210. The journal entry to record this information is
Igoryamba

Answer:

Debit cash $3,390

Credit sales revenue $210

Cales tax payable $3,180

Explanation:

Preparation of the journal entry to record the information given.

Journal entry

Debit cash $3,390

($3,180+$210)

Credit sales revenue $210

Cales tax payable $3,180

3 0
4 years ago
If you are sharing the road with an impaired driver it is safest to be
nexus9112 [7]
An impaired driver refers to someone who is under the influence of alcohol and is driving. If you are sharing the road with such a person, it is safest to drive behind such a person. You can take further action by parking beside the road, note down the vehicle's number and then call the appropriate patrol or emergency to inform them about the driver. This will ensure that such a driver is gotten off the highway. 
7 0
4 years ago
Luke is the owner of Fun Times, a U.S. event-planning company. He plans to open an event-planning company, Events & Adventur
yan [13]

Answer:A

Explanation:

A joint ventures is a business entity created by two or more parties, generally characterized by shared ownership.

5 0
4 years ago
A worker who loses a job at a call center because business firms switch the call center to another country is an example of whic
alexira [117]

Answer:

"Structural unemployment" is the right approach.

Explanation:

  • The terminology economists mischaracterize unemployment, which seems to be the consequences of such an absence or failure of coordination of talents as well as of opportunities, is defined as Structural unemployment.
  • This would be caused by economic shifts that prevent jobless persons from finding opportunities throughout different firms with very high qualifications.
6 0
3 years ago
1. Raphael pays Better Buy $800 to for a new high-definition television (HDTV) and its installation. He's attracted by Better Bu
dsp73

Answer:

A. Raphael spend $800

B.$800

C.VALUE ADDED

Explanation:

A. The amount of $800 is the amount that would be included in the expenditure method reason been that Rapheal used the amount of $800 to pay for a new high-definition television (HDTV) as well as its installation

B. The total contribution to GDP which is measured by the expenditure method, is the amount of $800 calculated as :

The Stages of Production; The Sale Value - The Cost of Intermediate Goods = VALUE ADDED

The Home Station $50 - $0 = $50

Firedog $650 -$50 =$600

Better Buy $800- $650=$150

TOTAL $800

($50+$600+$150)

C.The contribution to GDP that you found using the expenditure approach corresponds to the sum of the VALUE ADDED at each stage of production

8 0
4 years ago
Other questions:
  • Jody is an agent for Insta Cross Country Trucking Inc. In the course of Jody's performance for the firm, Jody pays Heck for cert
    13·1 answer
  • The lonely spoon restaurant manager promoted bill over helen because he believes that men should be paid more than women. this i
    14·2 answers
  • Daniel is the vice president of marketing and sales of an insurance company that sells workers' compensation insurance within th
    15·1 answer
  • Business had been humming along just fine until the recession hit. Peterbilt adjusted by laying off employees until the recessio
    9·1 answer
  • Monday island produces only yams yams and lemons lemons. the marginal cost of a yam yam is the number of lemons lemons that​ ___
    13·1 answer
  • Which descriptions offer examples of Management workers? Check all that apply. Roger sells a company’s product to customers. Art
    12·2 answers
  • In the marketplace, there are different types of fundamental drivers of social media engagement. The Wheel of Social Media Engag
    15·1 answer
  • how can electricity, communication, and transportation facilities indicate the potential for industrial growth?​
    7·1 answer
  • Bob manages a grocery store in a country experiencing a high rate of inflation. To keep up with inflation, he spends a lot of ti
    12·1 answer
  • hina's growth rate of real GDP in 2005 and 2006 was 10.5 percent a year and its population growth rate was 0.5 percent a year. I
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!