News

For a given object, only one thread may be executing any function that is marked as synchronized at a given time.<BR>2. wait () and notify () may only be called from synchronized threads<BR><BR ...
or the synchronized method should be evaluated on an application-by-application basis. The next time you need to synchronize data access, examine both options to see which one will work for you.