Hi,

I'm looking into migrating from OSCache to JBossCache, and I'm worried about a 
locking issue.

I'd like to be able to say, atomically, "Read this FQN/KEY, and if it comes 
back null, acquire a write lock and query the database".  What I want to avoid 
is having two threads which read, find the key empty, first thread aquires a 
write lock, second thread queues for a write lock when it will only need a read 
lock.

Is it possible to do this with JBossCache?

Cheers,
Kris

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867456#3867456

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867456


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to