Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Improve performance with publication and immutability

Oct 16, 2007, 03:30 (0 Talkback[s])
(Other stories by Andrew Citron, Chris Seekamp, Martin Presler-Marshall)

[ 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."

Complete Story

Related Stories: