On 9/4/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: > : and should the cache accesses also use synchronized(this) ? > > I can't see a need for that ... then the same instance couldn't be used on > two distinct readers in parallel threads ... but that should be fine.
synchronized (this) will provide the same level of concurrency as synchronized (cache) A related point: watch out for subclass use of "cache". -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]