In: Computer Science
What are some deadlocks examples that are frequently observed on Windows and on Linux?
ANSWER:
Example of Deadlocks in Linux:
In the event that process X should wait for lock process Y holds and when Y is should sit tight for a lock the process X holds. If the Operating System doesn't take into consideration for preemption of resource allocation and the contending processes or threads enter a circular wait condition, at that point a deadlock will happen. This implies once an asset has been designated to a process, there is no straightforward mechanism by which the system can take the asset back from the process except if the process deliberately surrenders it or the system executive kills the process. This can prompt a circumstance called deadlock. A lot of processes or threads is deadlocked when each process or thread is waiting that an asset will be liberated which is constrained by another process.
Examples of Deadlocks in
Windows system:
NOTE:-- Please comment if you face any difficulty in understanding the solution. Please Upvote. Thank you.