Hi,

I should have explained my question in more detail. The Javadoc of the
ItemManager states that there's one ItemManager per Session: it is
created in the constructor of SessionImpl. Sessions are not thread-safe
by specification. Because some methods in the ItemManager are
synchronized, an ItemManager instance of a Sesssion can also be accessed
by other threads than the one that is using the Session that created
that ItemManager. I am just wondering when that could happen.

The reason I am asking this is because we have the feeling that the
synchronization overhead begins to count on a multiprocessor (8 CPUs)
platform.

Best regards,

Martijn

--

Martijn Hendriks
<GX> creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/  

> -----Original Message-----
> From: Thomas Mueller [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 14, 2007 6:12 PM
> To: [email protected]
> Subject: Re: Synchronized methods in ItemManager
> 
> Hi,
> 
> > where the second thread comes from
> 
> The application can use multiple threads.
> Jackrabbit needs to protect itself from that.
> 
> Thomas
> 

Reply via email to