[email protected]
[Top] [All Lists]

Fwd: lucene inter-process locking question

Subject: Fwd: lucene inter-process locking question
From: jian chen
Date: Mon, 7 Nov 2005 20:34:47 -0800
 I did some research and found an answer from the following url:

 So, now I understand that it is partly historical.

---------- Forwarded message ----------
From: jian chen <[email protected]>
Date: Nov 7, 2005 4:17 PM
Subject: lucene inter-process locking question
To: [email protected]

 Hi, Lucene Developers,
 Just got a question regarding the locking mechanism in Lucene. I see in
IndexReader, first there is synchronized(directory) to synch up
multi-threads, then, inside, there is the statement for grabbing the
commit.lock .
 So, my question is, could the multi-thread synch be also done with
commit.lock? In other words, I don't understand why synchronized(directory)
is there meanwhile commit.lock could do both in and inter-process locking?
 Could anyone enlighten me about it?
 Thanks so much in advance,
<Prev in Thread] Current Thread [Next in Thread>