On 6/8/06, jason rutherglen <[EMAIL PROTECTED]> wrote:
What about ReentrantLock? I like it because it cleans up sync blocks. Adds a few nice methods. Makes threading more OO.
I don't know about cleaning up.... the syntax is slightly messier because you always need a finally block. It could have it's place if we needed lock polling or timed lock waits. It's really only faster under heavy contention AFAIK. So if you are running Solr on one of those monster 128 or 256 CPU machines, then it might matter more :-) Of course, at that point, Lucene might still be the weakest link in the concurrency chain too. Only way to tell is to have someone with a high CPU count do some testing/profiling. -Yonik