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?
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.
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 ?
Explain how Windows and Linux can work together in diverse environments.
Explain how Windows and Linux can work together in diverse environments.
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?
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?
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.
An organization has decided to move from a windows server environment to a Linux Server Environment....
An organization has decided to move from a windows server environment to a Linux Server Environment. The organization requires to offer email, web, fileshare, printing services to its users which are predominantly using MAc OS and windows clients. These services would be provisioned from the newly created Linux server. a) Outline some of the issues the system administrator needs to consider when designing the solution? b) How would you resolve the issues ? c) What tools would you use in...
What is a refractory metal? What are some examples? What is a precious metal? What are some examples?
What is a refractory metal? What are some examples? What is a precious metal? What are some examples?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT