3 Replies - 4781 Views - Last Post: 12 July 2017 - 11:53 PM Rate Topic: -----

#1 codeaddict  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-February 11

Deadlock avoidance

Posted 26 February 2011 - 01:15 PM

hi there? is there anyone out there who can tell me how does deadlock avoidance work in java?
thanks :)
Is This A Good Question/Topic? 0
  • +

Replies To: Deadlock avoidance

#2 macosxnerd101  Icon User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12178
  • View blog
  • Posts: 45,247
  • Joined: 27-December 08

Re: Deadlock avoidance

Posted 26 February 2011 - 01:21 PM

You may want to check out this tutorial.
Was This Post Helpful? 1
  • +
  • -

#3 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8378
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: Deadlock avoidance

Posted 26 February 2011 - 01:21 PM

Like in any othe programming languages
What is your specific question ?
Was This Post Helpful? 0
  • +
  • -

#4 nicolcrome  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 02-May 13

Re: Deadlock avoidance

Posted 12 July 2017 - 11:53 PM

A lock occurs when multiple processes try to access the same resource at the same time. A deadlock occurs when the waiting process is still holding on to another resource that the first needs before it can finish. A Java multithreaded program may suffer from the deadlock condition because the synchronized keyword causes the executing thread to block while waiting for the lock, or monitor , associated with the specified object.

More on...Deadlock in Java

Chrome
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1