Deadlocks and Remedies in Java

Discussion in 'Computer Science & Culture' started by Rick, Jan 10, 2003.

Thread Status:
Not open for further replies.
  1. Rick Valued Senior Member

    Messages:
    3,336
    Could someone explain in simple terms how a deadlock scenario might be averted using Multithreading in Java?I dont want theory,i know theory stuffs like moniters etc...I want core programming explainations...

    Porf might be a bit of help...thanks...


    (PS:i am currently busy,with my exams and stuff,i may not be able to reply for some days...thanks...)

    bye!
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. chroot Crackpot killer Registered Senior Member

    Messages:
    2,350
    You answered your own question. Java provides the synchronized keyword, which waits on the monitor of either some specific object, or on the monitor of the object being referenced.

    - Warren
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page