answersLogoWhite

0

Deadlock:

Two processes are said to be in deadlock situation if

process A holding onto resources required for process B and

where as B holding onto the resources required for process

A.

Starvation:

This is mostly happens in time sharing systems in which the

process which requires less time slot is waiting for the

large process to finish and to release the resources, but

the large process holding the resources for long time

(almost for forever) and the process that requires small

time slot goes on waiting. Such situation is starvation for

small process

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Computer Science

What is the difference between deadlock preventation and dead lock detection?

The difference is exactly what you have just stated: deadlock prevention is used to stop deadlocks before they happen (to prevent them), while deadlock detection is used to figure out when a process has deadlocked (to detect it).


What are the conditions that determine the transition between safe and unsafe states in a deadlock situation?

The transition between safe and unsafe states in a deadlock situation is determined by the availability of resources needed by processes to progress. When resources are not available, processes may become deadlocked, leading to an unsafe state.


What causes Deadlock?

A set of processes is deadlock if each process in the set is waiting for an event that only another process in the set can cause.


What are the common challenges faced by systems in solving the reader-writer problem efficiently?

Common challenges faced by systems in efficiently solving the reader-writer problem include ensuring data consistency, managing access to shared resources, and preventing issues like deadlock and starvation.


What is deadlock and explain it?

A deadlock is when both sides can't agree on a decision or when something is stuck and can't move. In technology, a deadlock is a situation where a group of processes are permanently blocked as a result of each process having acquired a subset of the resources needed for its completion and waiting for release of the remaining resources held by others in the same group-thus making it impossible for any of the process to proceed.

Related Questions

What is difference between starvation and deadlock in os?

DEADLOCK:1) Deadlock process is permanently blocked because the required resource never becomes available.2) The resource under contention is not in continuous use.STARVATION:1) In starvation, it is not certain that a process will ever get the requested resources.2) the resource under contention is in continuous use.


What is the difference between indefinite postpone mwnt and deadlock?

lklk


What is a readers writers problem without deadlock and starvation?

When using threads, the entire point of a reader/writer problem is to avoid deadlock and starvation. The only way to avoid deadlock or starvation without the use of semaphores is for there to be only one possible process that could run, that is one reader and one writer only.


What is the difference between deadlock preventation and dead lock detection?

The difference is exactly what you have just stated: deadlock prevention is used to stop deadlocks before they happen (to prevent them), while deadlock detection is used to figure out when a process has deadlocked (to detect it).


What are the difficulties that may arise when the process is rolled back as a result of deadlock?

starvation


What is deadlock what is starvation How do they differ from each other?

A deadlock occurs when two (or more) threads have created a situation where they are all blocking each other. ... Starvation occurs when a scheduler process (i.e. the operating system) refuses to give a particular thread any quantity of a particular resource (generally CPU).


Whats the difference between starvation and hunger?

hunger means a stromg desire for food and starvation means to suffer or die from a lack of food


How does deadlock differ from starvation?

Deadlock occurs when two or more processes are waiting for each other to release resources that they need to proceed, resulting in a standstill. Starvation, on the other hand, happens when a process is continually denied necessary resources (such as CPU time or memory) and cannot progress, even though resources are being allocated to other processes.


What is the difference between hunger and famine?

Hunger is when you don't eat an famine is starvation on a large amount of people


What is the difference between a famine and a blight?

Blight refers to the disease that affects a crop and the resulting starvation and problems is a famine.


A Sentence with deadlock?

Tuesday night's hockey game between the local middle schools ended in a 3-3 deadlock. Some synonyms for deadlock are tie, standstill, dead heat, and draw.


What is the difference among deadlock avoidance detection and prevention?

Deadlock prevention is the name of the technique that is designed to get rid of deadlocks by changing the specifications of the system , that is the system design change. This is , basically , about how requests about resources are made and how they are permitted. However , deadlock avoidance is a technique that aims to check deadlock possibility dynamically and decides whether it is safe to grant a resource or not. It ,definitely , needs extra information about potential use of resources for each process. Deadlock Prevention: Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design). The goal is to ensure that at least one of the necessary conditions for deadlock can never hold. Deadlock Avoidance: The system dynamically considers every request and decides whether it is safe to grant it at this point, The system requires additional apriori information regarding the overall potential use of each resource for each process. Allows more concurrency. Similar to the difference between a traffic light and a police officer directing traffic.