answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

A deadlock occurs when two (or more) threads have created a situation where they are all blocking each other. Imagine that threads T1 and T2 need to acquire both resources A and B in order to do their work. If T1 acquires resource A, then T2 acquires resource B, T1 could then be waiting for resource B while T2 was waiting for resource A. In this case, both threads will wait indefinitely for the resource held by the other thread. These threads are said to be deadlocked.

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). If there are too many high-priority threads, a lower priority thread may be starved. This can have negative impacts, though, particularly when the lower-priority thread has a lock on some resource.

Race conditions occur when two threads interact in a negatve (buggy) way depending on the exact order that their different instructions are executed. If one thread sets a global variable, for example, then a second thread reads and modifies that global variable, and the first thread reads the variable, the first thread may experience a bug because the variable has changed unexpectedly

http://www.justanswer.com/questions/5887-major-differences-deadlock#ixzz0JWXbzcQz&D

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between starvation and deadlock?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


When a process is rolled back as a result of deadlock the difficulty arises is?

starvation


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


Short note on fragmentation?

Starvation is similar in effect to http://www.answers.com/topic/deadlock-game. Deadlock occurs when two programs each hold resources the other needs to finish, and neither is willing to give them up. Starvation occurs when one program holds resources the other needs, but is unwilling to give them up.


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


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 between a famine and a blight?

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