Platech
Platech
BSIT-303
Platform Technology TP
Instructions:
Analyze the illustrations below. Then, answer the following items. Search for related
literature and/or relative studies that would support your answers. Cite your references
accordingly. (55 points)
3. Which concurrency mechanism would you suggest that might prevent the
deadlock situation above? Rationalize your answer. (5 points)
-Circular wait because this ensures that not a single process can request a resource
which is being utilized by some other process and no cycle will be formed. Among all
the methods, violating Circular wait is the only approach that can be implemented
practically.
5. Do Execution Paths 3 and 4 encompass the first three conditions for a deadlock
to occur? Explain your answer. (5 points)
-One might start by selecting a tactic that eliminates one of the requirements to
prevent stalemate (conditions 1 through 4). Second, stalemate may be avoided by
adopting the appropriate action. Third, one might try to determine whether
stalemate exists (if conditions 1 through 4 hold) and take action to break free.
Adaptive judgments based on the state of resource distribution We go through
each of these tactics separately.
6. If you are to implement deadlock prevention before the processes above reach
the critical section, would it be an indirect method or an indirect method? Why?
(5 points)
- Indirect approach would be preferable since it is more effective and has a wider
range than the direct strategy, and because I could avoid even one stalemate.
Implementing indirect is easier than focusing on eliminating cyclic and waiting by
devoting each resource to a specific task.
7. Which deadlock avoidance approach would you suggest for the given situation
above and why? (5 points)
-Circular wait because this ensures that not a single process can request a resource
which is being utilized by some other process and no cycle will be formed. Among
all the methods, violating Circular wait is the only approach that can be
implemented practically
8. Would you agree that deadlock is relative to the number of processes and
available resources in an operating system? Why or why not? (5 points)
-Because each process has secured a fraction of the resources needed for
completion and is waiting for the release of the remaining resources, which are
being held by other processes in the same group, deadlock occurs when a group of
processes become permanently halted.
9. If you are asked to reconstruct the progress diagram above to eliminate the critical
section, which is the deadlock-inevitable region, which aspect(s) or area(s) would
you modify? Explain how the modification eliminates the deadlock. (5 points)
-I would modify where the situation has a critical section or error so that will be
eliminate the deadlocks in this diagram showed. Adaptive judgments based on the
state of resource distribution We go through each of these tactics separately