[concurrency-interest] maximum number of shared lock forReentrantReadWriteLock

Tim Peierls tim at peierls.net
Thu Jul 7 13:14:52 EDT 2005


Bill Scherer wrote:
> If acquires is 0x7FFF, then that's the maximum of 65535 that Tim mentioned 
> below, so throwing an exception is correct in this case.

0x7FFF is 32767 -- now I think Jinsong Hu is right. You get an overflow 
exception when acquiring the 32768th read lock.

--tim



More information about the Concurrency-interest mailing list