Answer to Question #320882 in Computer Networks for Jona

Question #320882

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

1
Expert's answer
2022-03-30T14:10:12-0400

Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process. 

Starvation is the problem that occurs when high priority processes keep executing and low priority processes get blocked for indefinite time.

Deadlock happens when every process holds a resource and waits for another process to hold another resource. In contrast, starvation happens when a low priority program requests a system resource but cannot run because a higher priority program has been employing that resource for a long time.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS