jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn Hendriks" <marti...@gx.nl>
Subject RE: Synchronized methods in ItemManager
Date Mon, 17 Sep 2007 07:26:00 GMT

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)

Best regards,



Martijn Hendriks
<GX> creative online development B.V.
t: 024 - 3888 261
f: 024 - 3888 621
e: martijnh@gx.nl
Wijchenseweg 111
6538 SW Nijmegen

> -----Original Message-----
> From: Thomas Mueller [mailto:thomas.tom.mueller@gmail.com] 
> Sent: Friday, September 14, 2007 6:12 PM
> To: dev@jackrabbit.apache.org
> 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

View raw message