Skip to main content

Deadlock Ceases Computer Operation

Deadlock Ceases Computer Operation

Deadlock Ceases Computer OperationDefinition of Deadlock Ceases Computer Operation - A deadlock is a condition in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in ceasing the computer operation. In earlier times the computer processes only one program at a time. But in modern times, the technology upgrade the processor to yield a multiprogramming features. It results in both the processes hanging. It commonly occurs in computers having multitasking and client-server environments. It is also called as Deadly embrace.

What are the conditions which results in deadlock?

  1. Mutual exclusion – When only one process can use the computer resources at a given instant of time. The resources here is unsharable. This is the one case/ situation which gave birth to problem called deadlock.

  2. Hold and wait or resource holding – In this situation a process is currently holding at least one resource and requesting additional resources which are being held by other processes.

  3. No Preemption – the resources can be released by voluntarily method.

  4. Circular Wait – in this case each process must be waiting for a resources which is being hold by another process, which in turn wait for the first process to withhold the resource.

How can we Handle Deadlock?

The deadlock condition is handled by few steps which are used according to Ostrich algorithms. These are –

  1. Ignoring deadlock – this require Ostrich algorithms to prevent deadlock. It is assumed that a deadlock will never occur.

  2. Detection – an algorithm is employed to track resources allocated and process states to handle the conditions of deadlock. Detecting a deadlock that has already occurred is easily possible since the resources that each process has locked the request are known to the resource scheduler of the operating system.

  3. No hold and wait - Adopt a policy of not letting a process wait for one resource while holding another, either by requiring each process to hold only one resource at a time, or request all of the resources it needed simultaneously.

  4. Allow Preemption - This is almost as good as eliminating mutual exclusion. If you can bump from some process off a resource it is hogging, then I can break a deadlock cycle.

  5. Eliminating Cycles - This is similar to no-hold-and-wait. We all require processes to grab resources in increasing order according to some total order (one common heuristic is increasing order by the memory address of the mutexes guarding the resources).

Popular posts from this blog

Fix Windows could not find a driver for your network adapter error

Fix Windows could not find a driver for your network adapter error

A Computer run smoothly with the coordination of Software & Hardware. In the absence of any one it will not run at all. Software being the Master utilizes each hardware attached to the System. And each hardware is operated with the help of Device Drivers installed in it. Operating System (OS) uses these device drivers to control & utilize each hardware when needed. Each hardware connected to the system must have their own Device Driver installed. A device driver is a program to initiate a hardware when required by Operating System.

Suppose, you want your PC to connect to the Network, it can only be possible when your PC has network related Device Driver. These Device Drivers are easily downloaded from Manufacturer Websites. In this article we focus on Network related problem. Suppose, your PC not obtaining Network connectivity. And each time you are getting an error message saying "Windows could not find a d…

Fix This Site Can’t Be Loaded from The Cache Chrome Error

Fix This Site Can't Be Loaded from The Cache Chrome Error

This Site Can’t Be Loaded from The Cache - Today, there are several browsers available with extensive features on it. Each browser has its own importance and working principle. Some of the popular browsers available online are Google Chrome, Mozilla Firefox, Opera Mini, Internet Explorer, UC Browser, Safari, Microsoft Edge, Swift fox etc. The popularity of these browsers depends upon the features available in it.

Among them Google Chrome is the newest and mostly used browser around the world. Holding lots of feature make it more complex and hence more prone to errors. The types of error come up with the level of complexity of the program. If you are Chrome user and facing one of such error then read the full article. In this article, we focus on an error saying "This site can't be loaded from the cache". The explanation included with this error will be "The saved (cached) copy of this site was unreadable&qu…

Change Facebook Profile Picture Leaving All Unknown

Change Facebook Profile Picture Leaving All Unknown

Change Facebook Profile Picture Leaving All Unknown - Today, we spend lots of time in Social media platforms such as WhatsApp, Facebook, Instagram, Skype, YouTube, Twitter etc. We love to share Images & Videos with our friends via these platforms. These applications are largely used on Smartphones. We need to download concerned apps from inbuilt software, Play Store in Android Platform.

After downloading the App, we create an ideal account with a profile picture. We join the network by sending friend request. When request is accepted, we are added to such a community. In this article we take a close look on Facebook. Facebook is vastly used all around the world. Two person residing miles away can also share their views easily.

Change Facebook Profile Picture Leaving All Unknown

Whenever we open Facebook, lots of Images & Videos are seen with gentle scroll. In this article we focus on an interesting thing say Profile Picture. In F…