Question

In: Computer Science

What causes deadlock in an operating system? excessive resource swapping a new processor interrupts in the...

What causes deadlock in an operating system?

excessive resource swapping

a new processor interrupts in the middle of servicing an existing attempt

too much resource sharing

a process requests a resource that is held by another waiting process

Solutions

Expert Solution

Here the correct answer will be the the option number 4 which is given as "a process requests a resource that is held by another waiting process".This basically means A process has asked for a resource for example memory, or a output device,etc which is already held by another process which is in waiting state meaning it is also waiting for some resource that is held by some other process and like this a cycle forms in which none of the process can carry on with execution .So This leads to deadlock.

The first option which is excessive resource swapping does not lead to deadlock ,it simply means resources are being swapped excessively.

The second option does not lead to deadlock because when such interrupts occur ,if the new process is more important which means it has higher priority then the existing process will be put on hold and new process will be executed and then the old process will resume back so no deadlock here either.

Too much resource sharing which is option 3 also does not lead to a deadlock because it is simply sharing of resources and not blocking or holding a resource that is needed by another process.


Related Solutions

Deadlock –Banker’s Algorithm A system has three resource types (A, B, C) and four processes {P1,...
Deadlock –Banker’s Algorithm A system has three resource types (A, B, C) and four processes {P1, P2, P3, P4 }. The total units of system resources are: (8, 5, 4) units of A, B and C, respectively. The maximum demands for each process is P1(1,2,3), P2(3,2,1), P3(6,5,4) and P4(4,4,2). The current allocation is: P1(0,1,1), P2(2,2,0) and P3(3,0,1) and P4(1,0,1). (a) Allocation table is given for the 3 processes with the following four columns: PROCESS, ALLOCATION, MAX and NEED. And fill...
In operating system: How can a multicore processor take advantage of data parallelism?
In operating system: How can a multicore processor take advantage of data parallelism?
What is the difference between operating and financial leverage? What are risks of having an excessive...
What is the difference between operating and financial leverage? What are risks of having an excessive amount of financial leverage in an organization? What is the degree of total leverage?
What is an operating system? What are its functions? What are the types of operating system?
What is an operating system? What are its functions? What are the types of operating system?
Explain why an operating system can be viewed as a resource allocator. Direct memory access is...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU’s execution load. a) How does the CPU interface with the device to coordinate the transfer? b) How does the CPU know when the memory operations are complete? c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the...
what is new imperialism? and what were the causes of new imperialism ?
what is new imperialism? and what were the causes of new imperialism ?
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will? use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 90?% confident that his estimate is in error by no more than four percentage points? B) Assume that a recent survey suggests that about 91?% of computers use a new operating system
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 95​% confident that his estimate is in error by no more than five percentage points question marks? Complete parts​ (a) through​ (c) below. Round to nearest integer. Assume that nothing is known about the percentage of computers...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 9595​% confident that his estimate is in error by no more than fivefive percentage points question mark s? Complete parts​ (a) through​ (c) below. ​a) Assume that nothing is known about the percentage of computers with new...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 99​% confident that his estimate is in error by no more than three percentage points question marks? ​a) Assume that nothing is known about the percentage of computers with new operating systems. n=___ ​b) Assume that a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT