On Thu, 15 May 2008 01:20:37 +0900, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:

이희승 (Trustin Lee) wrote:
What I can tell at least though is that the session configuration properties provided by IoService should be volatile, because they are accessed in a different thread (I/O processor) almost always.
Use synchronization, not volatile. it's too dangerous. When we are sure that it works fine, we _may_ switch to volatile.

We already know all configuration properties are OK with volatile because what we do with them is just a simple assignment. Synchronization is safe, but it's way too much in this case.

--
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Reply via email to