Question

In: Computer Science

What are some deadlocks examples that are frequently observed on Windows and on Linux?

What are some deadlocks examples that are frequently observed on Windows and on Linux?

Solutions

Expert Solution

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:

  1. Two processes need to lock two records, the primary process locks one document the subsequent process locks the other, and each sits tight for the other to free up the locked file.
  2. Two processes need to write a document to a print spool area simultaneously and both begins writting. Since the print spool zone is of fixed size, and it fills up before either process wraps up its record, so both wait for more space will open up.

NOTE:-- Please comment if you face any difficulty in understanding the solution. Please Upvote. Thank you.


Related Solutions

What have been the major changes in the file systems for Windows and for Linux?
What have been the major changes in the file systems for Windows and for Linux?
Materials Science What are the frequently observed problems of using polymer materials in cars ?
Materials Science What are the frequently observed problems of using polymer materials in cars ?
Differences Between Linux and Windows Operating Systems Two key differences between a Linux operating system and...
Differences Between Linux and Windows Operating Systems Two key differences between a Linux operating system and a Windows operating system are the concepts of “mounting” and “drive” letters. Provide an example for each. Why is it important to plan disk partitioning before installing Linux? Discuss the advantages of disk partitioning. Also discuss what logical volume management (LVM) is and why or why you might use it.
Can someone please explain to me what are the differences between Windows and Linux memory hierarchy,...
Can someone please explain to me what are the differences between Windows and Linux memory hierarchy, and  handling flash memory as a replacement for disk. Thank you so much
What is LTP? What are some of the presynaptic changes observed? What are some of the...
What is LTP? What are some of the presynaptic changes observed? What are some of the postsynaptic changes observed? How do the AMPA and NMDA glutamate receptors contribute to LTP?
Windows 7, Windows 2008/2012/, Mac OS, Linux, and Nexus OS. please expains in a short answer....
Windows 7, Windows 2008/2012/, Mac OS, Linux, and Nexus OS. please expains in a short answer. thanks.
What is the most frequently failed (engineering) product that you have observed in your life? Be...
What is the most frequently failed (engineering) product that you have observed in your life? Be specific about your failed product. If you are given a chance to redesign and choose appropriate materials, how would you go about it?
Explain how Windows and Linux can work together in diverse environments.
Explain how Windows and Linux can work together in diverse environments.
Contrast the behavior of windows OSs with regard to group membership concurrently with the Linux approach...
Contrast the behavior of windows OSs with regard to group membership concurrently with the Linux approach of single group membership at a moment in time. How does this approach effect cumulative group permissions in Linux?
Study PC operating system such as windows and linux etc and mobile operating system such as...
Study PC operating system such as windows and linux etc and mobile operating system such as Android and iOS, find out whether there are functions and features that are provided in PC OS but not in mobile OS, and if there is any, analyze why these functions and features are not provided by these mobile OS. In your opinion for the future development will PC operating system and mobile operating system be the same or different? Give the details.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT