Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does the write lock apply to an Fqn node, say, “/org/jboss/test”?

lock Node write
0
Posted

How does the write lock apply to an Fqn node, say, “/org/jboss/test”?

0

First of all, JBoss Cache has a notion of root that serves as a starting point for every navigational operation. The default is “/” (since the default separator is “/” for the fqn). The locking then is applied to the node under root, for example “/org” (no locking “/”). Furthermore, let’s say when JBoss Cache needs to apply a write lock on node “/org/jboss/test”, it will first try to obtain read lock from the parent nodes recursively (in this example, “/org”, and “/org/jboss”). Only when it succeeds then it will try to obtain a write lock on “/org/jboss/test”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123