What is deadlock?

What is deadlock?

Deadlock is an event where two or more programs are competing for the same resources. Here the programs are in a deadlock because neither one can progress ahead.

Deadlock is a situation that occurs when two computer programs are sharing the same resources, and are thus effectively preventing each other from accessing the resource. This results in both the programs not being able to function.

Originally all computers were one program at a time type operating systems. Hence, at the time the program was running, all of the system’s resources were available to that program. However, as technology improved, more and more users tended to run multiple programs at the same time, hence these programs need to compete for the same resources.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.