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
If the reserve requirement is 20 percent, then excess reserves of $800 can increase M1 money supply by ___. g
Llana [10]

Answer:

If the reserve requirement is 20 percent, then excess reserves of $800 can increase M1 money supply by ___.

$3,200.

Explanation:

a) Data and Calculations:

Excess reserves = $800

Reserve requirement = 20%

Therefore, M1 money supply = $800/20% = $4,000

The increase in the M1 money supply will be $3,200 ($4,000 - $800)

b) The amount of funds that a bank is required by the central bank to hold in reserve to meet liabilities in case of sudden withdrawals by depositors is called the reserve requirement. It is usually stated as a percentage by the Fed Reserve.  The Fed uses reserve requirement as a tool to increase or decrease money supply in the economy and influence interest rates.  What the Fed does with the reserve requirement, therefore, depends on the monetary policy that it chooses to respond to the money market.

3 0
3 years ago
The johnsons have accumulated a nest egg of $50,000 that they intend to use as a down payment toward the purchase of a new house
algol13
Hell no to the no no no
6 0
4 years ago
Having never been to singapore, you should still be able to tell me the % of work force involved in primary and secondary activi
nikklg [1K]
<span>The percentage of work force involved in primary and secondary activities is probably equal to or less than 30%. In an economy like Singapore, development has been really fast due to which service sector particularly tourism accounts a major share. Hence the workforce involved in primary and secondary activities is declining and the share of workforce in these activities is approx 30% of the total workforce.</span>
3 0
3 years ago
Assume again that the cost of capital is 7 percent and the effective tax rate is 40 percent. How would the payback, internal rat
vfiekz [6]

Answer:

If the effective tax rate increases then the net savings coming from investments will get lowered as a result the investment will have higher payback period (The increase in effective tax rate would lower demand of the product which means there is decline in net saving arising from the sale of the product). Likewise this decrease in annual net savings will also decrease the internal rate of return which shows that their are increased chances of project rejections. The NPV method is based on cash flows and relevant costing just like IRR and payback method but the only difference is that it assumes that the cash earned would be reinvested at cost of capital. The NPV will also decrease due to increased effective tax rate.

4 0
3 years ago
why is government intervention often crucial when dealing with both positive and negative externalities?
Dennis_Churaev [7]

Answer:

Because the government can use her sovereign power to both mitigate negative externalities as well as encourage positive externalities.

Explanation:

A positive externality occurs when the transaction between a producer and end user benefits a third party that did not take art in the process.

A very Good example is Education. There is a third party benefit to the society when we have more educated citizens.

A negative externality happens when the business transaction between a manufacturer and consumer affects a third party adversely. a typical example is cigarettes. When cigarettes is consumed by the end user, the smoke can affect the health of a third party that was not part of the initial transaction.

To deal with both positive and negative externalities, government intervention is very crucial.

Government encourages positive externalities like education by subsidizing the cost of attending a school. They also enact laws that make basic education compulsory.

In the case of negative externalities, Government can intervene with a ban on producing harmful goods and also set a legislation about smoking in public laces to mitigate  the health complications caused by third party inhalation.

6 0
3 years ago
Other questions:
  • Hillary has a new product idea that aligns well with her company's current organizational resources. She puts together a present
    13·1 answer
  • The development of a nationwide computerized job bank listing of all job openings would be most likely to reduce:
    5·1 answer
  • 4) Identify the elements that are necessary to make a contract valid
    8·1 answer
  • The passage is primarily concerned with(A) evaluating a method used to test a particular scientific hypothesis(B) discussing exp
    8·1 answer
  • One reason that some central banks try to control exchange rates is that doing so helps control inflation.A. TrueB. False
    15·1 answer
  • The asset's book value is $70,000 on June 1, Year 3. On that date, management determines that the asset's salvage value should b
    10·1 answer
  • A statistics practitioner is n the process of testing to determine whether there is enough evidence to infer that the population
    8·1 answer
  • Rome Inc. owns 30% of Amber Co. and applies the equity method. During the current year, Rome bought inventory costing $66,000 an
    9·1 answer
  • Complementary and substitute goods
    15·1 answer
  • Concord Corporation is authorized to issue both preferred and common stock. The par value of the preferred is $50. During the fi
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!