[jbosscache-issues] [JBoss JIRA] Updated: (JBCACHE-1498) Option for fair locking in MVCC

Krzysztof Sobolewski (JIRA) jira-events at lists.jboss.org
Fri Mar 20 10:14:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBCACHE-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Sobolewski updated JBCACHE-1498:
------------------------------------------

    Attachment: fair-locking.patch


Patch implementing fair locking.

> Option for fair locking in MVCC
> -------------------------------
>
>                 Key: JBCACHE-1498
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1498
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Locking
>    Affects Versions: 3.0.3.GA
>            Reporter: Krzysztof Sobolewski
>            Assignee: Manik Surtani
>         Attachments: fair-locking.patch
>
>
> The javadoc for OwnableReentrantLock says:
>  * For the sake of performance, this lock only supports nonfair queueing.
> Well, I understand the sentiment, but starvation can be quite a problem with nonfair locking. So I implemented an option to swith to fair locking (patch attached).
> Please review :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosscache-issues mailing list