Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Synchronisation and Deadlock

This is a discussion on Synchronisation and Deadlock within the Java forums, part of the Programming Talk category; I have a doubt whether unnecesarry synchronisation would lead to case of deadlock. If so in what situations could synchronisations ...

  1. #1
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108

    Smile Synchronisation and Deadlock

    I have a doubt whether unnecesarry synchronisation would lead to case of deadlock. If so in what situations could synchronisations could be handled.


  2. #2
    Ralph is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    114
    Yes ashlee surely unnecessary synchronization would lead to case of deadlock. To say an instance if methods of the applet are over-synchronized then it would lead to deadlock. The best way to resolve this problem stated in example is to use synchronization in the applet only when needed. This way of handling would remove unnecessary synchronization and thereby avoid deadlock.


  3. #3
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    That's a nice scenario in which over-synchronization leaded to deadlock. Can someone specify more scenarios to make this discussion even more useful? I am also thinking in this line.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...