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

When Task Scheduler gets Infected by Malware

When Task Scheduler gets Infected by Malware

When Task Scheduler gets Infected by Malware - We are familiar with malware attacks on Computer. The hackers infect one or more files and thereby attaining full control on the System. There are millions of victims who had loosen either data or dollars in this respect. In this article we see a System file which is infected by these hackers at first stage. The System file infected by malware at first stage is Task Scheduler Engine (Taskeng.exe). The Task Scheduler Engine is a system file located in C:\Windows\System32 folder. This location is the default location for Taskeng.exe.

The Task Scheduler Engine is responsible for keeping track of tasks set to run at a time predefined by the user of the PC. As said earlier, the original location of this scheduler is C:\Windows\System32 folder. But it is suspicious if the location of scheduler gets change. If it is found in some other folder then it must be infectious. As a result, you constantly get a…

How to Project Android Phone Screen on Windows PC

How to Project Android Phone Screen on Windows PC

Project Android Phone Screen on Windows PC - Four out of Five of us have Smartphones in our Pocket. We spend lots of time on Smartphone utilities like Facebook, Twitter, WhatsApp, YouTube and other interesting Apps. These Smartphones are tremendously used due to Android Operating System installed in it. Android OS is one the successful mobile based OS running in the market.

On the Other side, Microsoft is emphasizing on features to ease Android user's connectivity with it. Microsoft has done lots of improvement for mobile utilities to the Windows 10 version 1809. With this upgradation, we can easily project Android phone screen on Windows PC. The extensive use of such features is seen on Digital Smart TVs Today. The introduction of Wi-Fi feature makes more reliable and user friendly.

So, if you are boredom with 5-6-inch Android Screen and want to mirror it on Computer screen, then read the full article to know the process, how to proj…

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…