Improve performance with publication and immutabilityOct 16, 2007, 03:30 (0 Talkback[s])
(Other stories by Andrew Citron, Chris Seekamp, Martin Presler-Marshall)
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
[ Thanks to BlueVoodoo for this link. ]
"A disadvantage to using data shared among multiple Java threads is that access to the data must be synchronized to avoid an inconsistent view of the contents, which could result in application failures. For example, the Hashtable class's put() and get() methods are synchronized. Synchronization is required so simultaneous put() and get() methods have sole access to the data when executing; otherwise, application data structures might get corrupted."
0 Talkback[s] (click to add your comment)