Re: Is synchronisation required here ?
<vanisathish@xxxxxxxxx> wrote:
Does the m_glblstatic required to be synchronised in this servlet.
Appreciate your inputs
This is ambiguous in the specification. I would probably add
synchronization just to be safe.
--
Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation
.
Relevant Pages
- Re: Signs of stupid Java code
... Chris Smith wrote: ... > synchronization in this way. ... comments marking off hazardous areas for future modifications. ... But not necessarily pointless code. ... (comp.lang.java.programmer) - Re: stale objects in collections
... safe to use without synchronization? ... (I'm imagining an argument ... "The trouble with a mutable object is that different ... (comp.lang.java.programmer) - Re: JavaMail Trouble
... Chris Smith - Lead Software Developer / Technical Trainer ... MindIQ Corporation ... (comp.lang.java.programmer) - Re: Coding inside the debugger
... > the ins and outs of every possible JVM implementation. ... I don't consider synchronization to be as ... > obviously safe and simple as you imply above. ... > "The aim of science is not to open the door to infinite wisdom, ... (comp.object) - Re: Which Hash methods are thread safe?
... Reading a data structure from multiple threads is ... Ruby implementation) you lose a lot of important guarantees like memory ... of what is and isn't safe: once you drop synchronization, ... (comp.lang.ruby) |
|