Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

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

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

Answers


Faith
Deadlock is the phenomenon that arises when a number of concurrent processes all become blocked
waiting for another thread to make available a resource, but it can only be released by a thread that is
still blocked. Starvation is the phenomenon which arises when a process does not ever receive the
resource it is waiting for, even if it repeatedly becomes available, as it is always allocated to another
waiting process.
Processes halt in deadlock because they cannot proceed and the resources are never made available.
Therefore, no progress can be made. With starvation, progress is made overall at the expense of a
particular process or processes, which consistently miss out on being allocated their requested resource.
Titany answered the question on April 26, 2022 at 09:21

Answer Attachments

Exams With Marking Schemes

Related Questions