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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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.
|