【The Java™ Tutorials】【Concurrency】4. Synchronization
为什么需要同步Threadscommunicateprimarilybysharingaccesstofieldsandtheobjectsreferencefieldsreferto.Thisformofcommunicationisextremelyefficient,butmakestwokindsoferrorspossible:threadinterferenceandmemorycon