![]() |
JavaPartyA distributed companion to JavaCurrent release 1.9.5 Bernhard Haumacher, Thomas Moschny and Michael Philippsen |
|
Contents See also
Powered by
|
SynchronizationSince JavaParty 1.07a In JavaParty the syntax for synchronization is the same as in the regular Java language: Methods of remote objects can have the synchronized modifier, and remote objects can be passed as argument to a synchronized block.
Thanks to the Transparent Threads feature of JavaParty, you can use both forms of synchronization as you are used to in regular non-distributed Java. Since writing parallel programs and using synchronization right is a difficult task, it is recommended to read the section about synchronizing threads in the Java tutorial and the section about threads and locks in the Java language specification. But even if synchronization is transparent in JavaParty, finding out why something goes wrong in a parallel distributed program might be more difficult than in a parallel non-distributed one. Tips and Tricks using SynchronisationIf you consider the following rules of thumbs, you should be able to avoid most pitfalls regarding Java synchronization:
|
|||||||||
| For comments and bug reports please use the JavaParty users mailing list. Page design & maintenance: Bernhard Haumacher. Last update: Fri Mar 30 18:46:00 GMT+01:00 2007 Java is a trademark of Sun Microsystems. |