On Friday, October 18, 2002, at 01:44  PM, Greg Steuck wrote:
Although there is a question: is Map returned as Map dependency
thread-safe?  From efficiency standpoint it maybe best to specify that
it is NOT.  And the user is responsible for enveloping it into a
Thread-safe wrapper if the use case dictates that. Either way I think
a clarification is needed.

Comments?
does it matter? I have been under the impression that the regular HashMap class is fine when read from multiple threads. You need to ensure a thread-safe wrapper when you want to have multiple threads modifying the Map. Since the Map returned for the dependency (should be) read-only, I don't think it is an issue.

Correct my if I'm wrong...
-pete

--
peter royal -> [EMAIL PROTECTED]


--
To unsubscribe, e-mail: <mailto:avalon-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@;jakarta.apache.org>

Reply via email to