1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of GCC

By David Bolton, About.com

Definition: A deadlock is a situation where an application locks up because two or more activities are waiting for each other to finish. This occurs in multi-threaded software where a shared resource is locked by one thread and another thread is waiting to access it and something occurs so that the thread holding the locked item is waiting for the other thread to execute.

Another case where deadlock can occur is in databases where one application has asked for a lock on a table. It then requires a second table but another application has locked the second table and is waiting to get a lock on the first.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Deadlocks in a multi-threaded application can be difficult to track down and correct.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.