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
Soprano Corporation allocates administrative costs on the basis of staff hours. Short-run monthly usage and anticipated long-run
Nuetrik [128]

Answer:

$850,000

Explanation:

Total Hours of Department 1=$80,000+$90,000

=$170,000/$200,000*1000,0000

8 0
3 years ago
Wichasha, an african country, exports barley and cotton worth $100 million to illema, a european country, and it imports sugarca
max2010maxim [7]

Answer: Balance of Trade

Explanation:

<em>Balance of trade</em> is the difference between the value of exports from a country and the value of imports into the country. When the value of exports is greater than imports, the balance of trade is positive and the country has a <em>trade surplus</em>. While, when the value of exports is less than the value of imports, the balance of trade is negative and the country has a <em>trade deficit</em>.

In this case,  Wichasha's exports is higher than the total value of its imports so, it has a trade surplus or positive balance of trade.

7 0
3 years ago
Harold borrows $20,000 from Alex and signs a note promising to pay Alex this amount plus interest in one year. Alex negotiates t
Tomtit [17]

Answer:

B)

Explanation:

Reese can recover from Alex.

4 0
3 years ago
Bart works as an accountant for Good Times Restaurant. He is responsible for not only keeping the books current but also for mak
GenaCL600 [577]
Embezzlement. He is taking (stealing) asserts that we’re entrusted to him. Bad Bart!
7 0
3 years ago
"A tenant offers to sign a lease paying a rent of $1,000 per month, in advance (i.e., the rent will be paid at the beginning of
belka [17]

Answer:

$47,500

Explanation:

Since the payment is made monthly in advance for the period of 5 years, therefore the present value of annuity formula shall be used for the purpose of calculating the Present value of lease, which is given as follow:

Present value of annuity=R+R[(1-(1+i)^-n)/i]

In the given question

R=Rent per month paid in advance=$1,000

i=interest compounded monthly=10%/12=0.83%

n=number of payments involved=(12*5)-1=59

Present value of annuity=1,000+1,000[(1-(1+0.83%)^-59)/0.83%]

                                        =$47,500

3 0
3 years ago
Other questions:
  • A pharmaceutical company in 2016 is researching the market conditions for their newest cold medicine. They pull demographic data
    7·1 answer
  • Which of the following options has drastically reduced the costs of operating and transacting on a global​ scale?
    7·1 answer
  • How should an organization design its structure and culture to obtain a core competence in manufacturing and in research and dev
    13·1 answer
  • Establishing rules that will help you stay focused is called
    8·2 answers
  • Which type of technology in criminal intelligence do you think poses the highest risk of infringing our individual rights? Why?
    11·2 answers
  • You should FOLLOW UP on items that: ______________, _________________, ________________.
    9·1 answer
  • Randall Company manufactures chocolate bars. The following were among Randall's manufacturing costs during the current year: Wag
    13·1 answer
  • The human resources department at a major high tech company recently conducted an employee satisfaction survey of 100 of its 300
    8·1 answer
  • You are the financial manager of the Crossrail 1 project in London. The Board overseeing the project, acting on behalf of the UK
    12·1 answer
  • To make sure it has enough employees on hand during the busy holiday season, Target plans to hire thousands of temporary, season
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!