Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dead locks in java  RSS feed

 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am going through below link, it sounds like oracle DB automatically detect and resolves dead locks .. how this can be done in java if any deadlock happens?

https://docs.oracle.com/cd/E11882_01/server.112/e40540/consist.htm#CNCPT1336
 
Les Morgan
Rancher
Posts: 768
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have resources that you have a probability of getting a deadlock situation, then synchronization of that code should keep you from getting into that situation.
 
Paul Clapham
Sheriff
Posts: 22531
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... provided, of course, that your deadlock is caused by two threads in a single application both trying to update the same row at the same time. If the deadlock is caused by separate applications trying to update the same row then synchronization isn't going to help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!