This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
when a synchronize static method is called a lock is obtained on the Class (since static method can be called without creating the clas object) but when a synchronize method is called a lock is obtained on the object which has called the method.
[message edit: There is no change in synchronization mechanism both cases(static / non static method)]
This does not show the problem well, but when you start doing things like this it is not difficult to have variables such as name in Object one change in ways that are not expected. Not really any change in syntax or meaning of synchronized in either static or instance method. [ April 16, 2008: Message edited by: Nicholas Jordan ]
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
subject: Static and non Static Synchronize Methods