0% found this document useful (0 votes)
9 views

Final Task#1

Uploaded by

Jeremy Delacruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Final Task#1

Uploaded by

Jeremy Delacruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Final Task#1

Jeremy Leih C. Dela Cruz


B2021

1. How to avoid OS Deadlock?


 Use algorithms such as Banker's algorithm or the Resource Allocation
Graph to detect and prevent deadlocks before they happen. Allow
processes to be preempted, which means that the operating system
can temporarily transfer resources from one process to another to
avoid deadlocks.

2. What are the ways to deal or solve the Deadlock problem in OS?
 Detection and recovery: Use deadlock detection algorithms to
determine whether a deadlock has occurred. Once detected, the
system can take steps to recover from the impasse, such as
terminating one or more processes or reversing their actions.
 Resource Ordering: Create a protocol for the order in which
resources should be acquired. Deadlocks can be significantly
decreased by guaranteeing that processes receive resources in the
same order every time.
 Timeouts: Set timeouts for resource requests. If a process is unable to
acquire a resource within a given time limit, it can release the
resources it is presently holding and try again later.
 Resource Preemption: If a deadlock arises, carefully intercept
resources from processes in a way that breaks the impasse while
causing minimal disturbance.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy