Exforsys

Online Training

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 ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2006, 04:20 AM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2007, 09:15 AM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2007, 09:38 AM
Senior Member
 
Join Date: Apr 2006
Posts: 141
Adrian is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.