This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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!