You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by WANG Qingtian <qi...@gmail.com> on 2005/04/05 17:07:54 UTC
Configuration - threading
A lot of newbie questions :)
How is the read/write isolation issue handled in terms of
multi-threading? Say if some thread writes to the configuration file
while another is reading it....
Thanks!
Qingtian
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: Configuration - threading
Posted by Emmanuel Bourg <eb...@apache.org>.
The implementations are not synchronized, so you'll have to be careful
with concurrent read/write. The only part that is synchronized is the
reloading mechanism, you can't read a property when the configuration is
being reloaded.
Emmanuel Bourg
WANG Qingtian wrote:
> A lot of newbie questions :)
>
> How is the read/write isolation issue handled in terms of
> multi-threading? Say if some thread writes to the configuration file
> while another is reading it....
>
> Thanks!
> Qingtian
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org