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
Which of these characteristics is NOT applicable to a multinational company?(A) It may serve only one country but have suppliers
Vinil7 [7]

Answer:

(A) It may serve only one country but have suppliers or facilities in other countries.

Explanation:

  • An MNC is a multinational enterprise as its a corporate organization that serves the goods and services and also manages the production the establishments, and thus has a plants located in at least two countries and engages in FDI foreign direct investment as the firm markets have a direct investment in the host countries equity ownership and managerial control.
  • They generally make a significant investment in a foreign country, also buying and selling licenses in the foreign markets and prover their global presence in a variety of ways like advertising costs over the global sales, pooling of global purchasing power over the suppliers, and also spreading R&D and innovation in markets.
7 0
3 years ago
What is the first step in setting up a budget? (1 point)
Bond [772]
Okay so, i don’t know, i’m so sorry.
6 0
3 years ago
Read 2 more answers
At the beginning of her current tax year, Angela purchased a zero-coupon corporate bond at original issue for $51,500 with a yie
wolverine [178]

Answer:

Angela's income interest is $772,500‬

Explanation:

Income interest at 1st Semiannual duration

Semi annual interest = $51,500*6%*(6/12)= $154,500

Income interest at 2nd Semiannual duration

Note New Principal for 2nd year will be =$51,500+$154,500= $206,000

Semi annual interest = ($51,500+$154,500)*6%*(6/12)= $618,000‬

There fore Total income = $154,500+$618,000‬= $772,500‬

5 0
3 years ago
If you are interested in working for a specific company, what type of job site should you look at for opening?
Alexandra [31]
C. Company cite :)
Please award me the best  answer :)

6 0
3 years ago
Kyle has $2,200 in cash received for high school graduation gifts from various relatives. He wants to invest it in a certificate
Darina [25.2K]

Answer:

Kyle will have in five years from now 2,501.26 dollars for his investment on certificate of deposit.

Explanation:

We need to calcualte the future value of a lump sum:

Principal \: (1+ r)^{time} = Amount

Principal $ 2,200

time 5 years

rate 2.6% = 2.6/100 = 0.02600

2200 \: (1+ 0.026)^{5} = Amount

Amount 2,501.26

7 0
3 years ago
Other questions:
  • Shanken corp. issued a 30-year, 5.9 percent semiannual bond 6 years ago. the bond currently sells for 108 percent of its face va
    8·1 answer
  • Two individuals at a retail store work the same cash register. You evaluate this situation as which of the following?
    12·1 answer
  • When compiling a reference list, you should always _____.
    10·2 answers
  • How does local techology help people?​
    11·1 answer
  • Which element of internal control deals with establishing procedures for things such as handling of incoming checks, and which e
    11·2 answers
  • On hot summer days, electricity-generating capacity is sometimes stretched to the limit. At these times, electric companies may
    10·1 answer
  • Lancashire Railway Company (LRC) has two divisions, L and H. Division L is the company’s low-risk division and would have a weig
    10·1 answer
  • Excellent Company has provided the following operating information for one of its divisions: Sales $100,000 Variable expenses $5
    10·1 answer
  • For the current year temporary differences existed between the financial statement carrying amounts and the tax basis of the fol
    6·1 answer
  • A common-size income statement is an accounting statement that expresses all of a firm's expenses as a percentage of:_______
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!