-2

What is deadlock in programming Object Oriented ?

I had knew deadlock in transaction of Database Systems. But in programming I'm not clear. I want to know when deadlock occur and how to resolve it.

Thanks!

  • 1
    maybe [wikipedia - deadlock](http://en.wikipedia.org/wiki/Deadlock) can help you! – Leviathan Nov 14 '13 at 17:11
  • This is a pretty good explanation of it: http://stackoverflow.com/questions/2143873/how-to-explain-the-deadlock-better – minhaz1 Nov 14 '13 at 17:13

2 Answers2

1

A deadlock is when you have two or more processes that are each waiting for the other to finish. When this happens, neither one can continue and the program essentially stalls.

DerStrom8
  • 1,311
  • 2
  • 23
  • 45
0

There is a basic example here

http://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html

well documented.

but, a deadlock occurs when you wait for a object to be freed but that condition is never achieved.

codeboza
  • 21
  • 3