On Jan 30, 2008 10:59 PM, ajay_garg
<[EMAIL PROTECTED]> wrote:
>
> Thanks Mike for your directions.
>
> Yes, I am in fact using a single computer for my application, and your
> saying that in this case, multiple threads with a single IndexWriter wll
> give a better performance. Hmmm. I just wonder that since each IndexWriter
> has a single write.lock, this means that sitting on the CPU, we observe that
> at a particular instant, only a single thread is using the CPU,

The write.lock is to protect against other IndexWriter instances,
*not* against other threads.
Using multiple threads on a single IndexWriter should utilize multiple CPUs.

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to