cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <>
Subject RE: Locks within AbstractReadWriteStore
Date Mon, 08 Mar 2004 08:05:33 GMT
Corin Moss dijo:
> Hiya,
> JCS certainly has an implementation of a r/w lock:
> ReadWriteLock.html

While reviewing the code at line 111 is interesting to me why wait full 2
seconds on it. It is a lot of time!

Based on my own DB experience, it is better to issue a random wait time
ranging from 1 to 1000 ms. It would be faster and avoid threads fighting
each other when they entered on the same instant. They will have diferent
waiting time.


Best Regards,

Antonio Gallardo

View raw message