[jboss-jira] [JBoss JIRA] (JGRP-1825) ReadWriteLock

Manuel Dominguez Sarmiento (JIRA) issues at jboss.org
Mon Nov 2 13:23:00 EST 2015


    [ https://issues.jboss.org/browse/JGRP-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124426#comment-13124426 ] 

Manuel Dominguez Sarmiento commented on JGRP-1825:
--------------------------------------------------

Hi Bela, we would appreciate a native ReadWriteLock implementation in JGroups. We are working on improving the EhCache-JGroups replication integration so that cluster consistency can be achieved with replicated read-write caches. ReadWriteLocks are a necessity for many scenarios and corner cases.

The alternative seems to be using the current exclusive lock construct, with two different locks (one for reads, another for writes) together with a distributed COUNTER, but this is far from being efficient (too chatty). Perhaps something along the lines of the algorithms described in https://en.wikipedia.org/wiki/Readers–writers_problem

> ReadWriteLock
> -------------
>
>                 Key: JGRP-1825
>                 URL: https://issues.jboss.org/browse/JGRP-1825
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 3.6
>
>         Attachments: JgroupTest.zip
>
>
> Adds a read/write lock to LockService. The impl is attached



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list