Sean Kelly Wrote: > The shared portion, rather than labeling functions as synchronized, uses > synchronized internally to make the mutex use as fine-grained as possible. > And the logically unshared portion only synchronizes when accessing the > shared data in the object.
What's the difference? Both access shared data and synchronize. If the data accessed is unshared, there should be no problem to do it from shared method - there will be no barriers because the data is unshared, as I understand it.