Question

In: Computer Science

In terms of resources, what is the difference between deadlock and starvation? max 200 words

In terms of resources, what is the difference between deadlock and starvation? max 200 words

Solutions

Expert Solution

Deadlock occurs, when each process holds a resource and wait for some other resource. Mutual exclusion, keeping and waiting, no preemption, and circular waiting are the essential conditions for deadlock. In this method, no one resource holds and expects another to be executed. For eg, the process 1 below holds resource 1 and awaits resource 2 acquired via process 2 and process 2 awaits resource 1 , respectively. There is therefore a deadlock between both process 1 and process 2.

Starvation is the dilemma that happens when processes of high priority continue to run and processes of low priority are blocked indefinitely. A steady stream of higher-priority processes in highly loaded computer systems will prevent the CPU from ever reaching a low-priority process. High priority systems are continually used in starvation resources. Ageing will solve the issue of starvation. When long waiting processes get aged, priorities are growing gradually.

DEADLOCK

STARVATION

1.

Every processes have to wait for each other to finish and none is executed

Processes of high priority continue to execute and processes of low priority are blocked

2.

Resources are blocked by the processes

Resources are continuously utilized by high_priority processes

3.

Necessary conditions Mutual Exclusion, No preemption, Circular_Wait, Hold and Wait

Priorities are assigned to the processes

4.

Also known as Circular_wait

Also know as lived_lock

5.

It can be prevented by avoiding the necessary conditions for deadlock

It can be prevented by Aging


Related Solutions

QUESTION 2 : Words: 200 What is the difference between Qualitative data and quantitative data?
QUESTION 2 : Words: 200 What is the difference between Qualitative data and quantitative data?
QUESTION 2 : Words: 200 What is the difference between Qualitative data and quantitative data?
QUESTION 2 : Words: 200 What is the difference between Qualitative data and quantitative data?
3 Solutions for the extinction of Caspian Seals. max 200 words
3 Solutions for the extinction of Caspian Seals. max 200 words
State the difference between qualitative and quantitative data. not more than 200 words
State the difference between qualitative and quantitative data. not more than 200 words
How does virtualization relate to Cloud Computing? max 200 words.
How does virtualization relate to Cloud Computing? max 200 words.
What is OPEC and how would it be described in economic terms? 200 words
What is OPEC and how would it be described in economic terms? 200 words
In 200 words or more, Explain the difference between competency-based and traditional pay plans?
In 200 words or more, Explain the difference between competency-based and traditional pay plans?
1- What is Audit risk? (Write one or two paragraphs, max 200 words in your own...
1- What is Audit risk? (Write one or two paragraphs, max 200 words in your own words and with supporting references)
What is the difference between virus, worms and trojan in terms of?
What is the difference between virus, worms and trojan in terms of?What does it do?How does it spread to another computer?Does it infect the file?Does there need to be user action for it to be spread?It can be attached to.
What is the primary difference between tangible and intangible resources? Select one: a. Tangible resources take...
What is the primary difference between tangible and intangible resources? Select one: a. Tangible resources take a longer time to build, whereas intangible assets can be built comparatively easily. b. Tangible assets are difficult for competitors to imitate, whereas intangible assets can be easily replicated. c. Tangible resources contribute to a company's competitive advantage, whereas intangible resources have no effect on competitive advantage. d. Tangible assets can be bought on the open market by anyone with the necessary cash, whereas...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT