So that multiple threads can efficiently access the writer, but only one thread at a time does a commit. Adding docs with the writer is the 'read' and committing is the write. If I remember correctly.

- Mark


On Nov 6, 2008, at 6:24 AM, Koji Sekiguchi <[EMAIL PROTECTED]> wrote:

I'm sorry if this is a stupid question but I'm curious
why DUH2 uses ReentrantReadWriteLock.
What is the purpose of it?

Thank you,

Koji

Reply via email to