4 Replies Latest reply on Jul 7, 2005 8:12 AM by Bela Ban

    ReadWriteLockWithUpgrade does not permit > 1 concurrent upgr

    Brian Dueck Newbie

      Ben, Bela;

      Wondering if you can explain why ReadWriteLockWithUpgrade.upgradeLockAttempt() does not allow more than 1 concurrent reader to upgrade their lock?

      Although there are inherent inefficiencies if you have many readers competing for a lock upgrade, I can't see an inherent problem with the scenario.

      In my case, I do have situations where multiple threads are trying to add different children to the same node on a cache with REPEATABLE_READ as the isolation level.

      Any thoughts on this?