This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Deadlock" Watch "Deadlock" New topic
Author

Deadlock

Karthik Gupta
Greenhorn

Joined: Feb 17, 2005
Posts: 3
Hi

can anyone tell me how to prevent deadlock.

thanks

karthik
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: http://aspose.com/file-tools
 
subject: Deadlock
 
Similar Threads
Doubt on Thread - Is the code went in to DeadLock state ?
urlyBird 1.2.3
How To Avoid Deadlock?
is this call synchronized ?
deadlock