Skip to main content

What Is DeadLock ? - Definition From Tech Trone

deadlock

Deadlock Condition

A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in both programs ceasing to function.

The earliest computer operating systems ran only one program at a time. All of the resources of the system were available to this one program. Later, operating systems ran multiple programs at once, interleaving them. Programs were required to specify in advance what resources they needed so that they could avoid conflicts with other programs running at the same time. Eventually some operating systems offered dynamic allocation of resources. Programs could request further allocations of resources after they had begun running. This led to the problem of the deadlock. Here is the simplest example:

  Program 1 requests resource A and receives it.
  Program 2 requests resource B and receives it.
  Program 1 requests resource B and is queued up, pending the release of B.
  Program 2 requests resource A and is queued up, pending the release of A. 
 

Now neither program can proceed until the other program releases a resource. The operating system cannot know what action to take. At this point the only alternative is to abort (stop) one of the programs.

Read More Posts Under : Operating System

Learning to deal with deadlocks had a major impact on the development of operating systems and the structure of databases. Data was structured and the order of requests was constrained in order to avoid creating deadlocks.

Comments

Popular posts from this blog

What is the difference between a direct and an indirect address instruction ?

Direct addressing means the instruction refers directly to the address being accessed. That is, the instruction encoding itself contains the address of the location. Depending on the instruction set, it may also allow computing a small index relative to the address. When used that way, you can think of that as a direct-indexed mode. (Note: Some processors call ‘direct’ mode ‘absolute’, such as the 6502.)   Indirect addressing uses an address held in a register or other location to determine what memory location to read or write. The idea here is that the instruction itself isn’t directly telling you the address to access, but rather indirectly telling the CPU where to find that address. The processor may also allow you to add a small offset to the indirect address, giving an indirect-indexed addressing mode. Also Read : 5 Best Terminal Emulators for Linux The 6502 one is a little quirky: The 6502 doesn’t have general-purpose registers large enough to store add

What Are The Benefits Of Working As a Freelancer

Let’s assume that you know what freelancer is, working as a  Freelancer  has so many advantages but they have some disadvantages too. But in this post, we’ll focus on the benefits of working as a freelancer. Ok ok, enough intro, let’s get right on the main stuff. 😊 What Are The Benefits Of Working As a Freelancer You’re Your Own Boss Freelancers are essentially their own bosses and can avoid all the stress that comes from working for someone difficult. You Control Your Workload As a freelancer, you get to say when enough is enough. You can control the number of clients and projects. You’re Less Likely To Get Sick Most Freelancers  work  from home & deal with all their clients remotely. This working situation keeps away many diseases. You Work Whenever You Want As a freelancer, whenever you need a break, you can get one. And you can take naps whenever you need one. You Work Wherever You Want Freelancers  can work from  anywhere  in the world as long a

What is ASP.NET? and it's ARCHITECTURE

What is ASP.Net? ASP.Net is a web development platform provided by Microsoft . It is used for creating web-based applications. ASP.Net was first released in the year 2002. The first version of ASP.Net deployed was 1.0. The most recent version of ASP.Net is version 4.6. ASP.Net is designed to work with the HTTP protocol. This is the standard protocol used across all web applications. ASP.Net applications can also be written in a variety of .Net languages. These include C#, VB.Net, and J#. In this chapter, you will see some basic fundamental of the .Net framework. The full form of ASP is Active Server Pages, and .NET is Network Enabled Technologies. ASP.NET Architecture and its Components ASP.Net is a framework which is used to develop a Web-based application. The basic architecture of the ASP.Net framework is as shown below. ASP.NET Architecture Diagram  he architecture of the.Net framework is based on the following key components Language – A variet