File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Deadlock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Deadlock" Watch "Deadlock" New topic


Karthik Gupta

Joined: Feb 17, 2005
Posts: 3

can anyone tell me how to prevent deadlock.


David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
There's no universal way to avoid deadlock for any given program. The way to prevent it is to design your application correctly. You'd be better off reading the large number of papers on the subject that you can find through any search engine. As this is a very complex subject, any answer here is going to be cursory at best.
I agree. Here's the link:
subject: Deadlock
It's not a secret anymore!