This content has been marked as final.
Show 2 replies
-
1. Re: Please javadoc concurrency semantics
wolfc Nov 11, 2010 2:28 PM (in response to jason.greene)Speaking of concurrency, why are some service lifecycle methods synchronized and others not?
NamingService is, CreateDestroyService is not.
-
2. Re: Please javadoc concurrency semantics
dmlloyd Nov 11, 2010 3:44 PM (in response to wolfc)Services can be started and stopped from any thread, and mutable state can be accessed from any thread. The ones with synchronized methods simply use it as a thread safety mechanism for their mutable state. CreateDestroyService and friends have no mutable state, thus there's no need for them to be synchronized.