afs commented on issue #1961:
URL: https://github.com/apache/jena/issues/1961#issuecomment-1645570295

   The trouble with locks is deadlocks - both absolute ("deadly embrace") and 
under load ("deadlock by congestion").
   
   Don't mix "simple" and "lightweight" :-) Java locks are not lightweight. 
Their contract on the memory model is expensive to the whole application. It's 
the first generation memory model for Java. It's not a great fit to model 
processor architectures.
   
   `GraphTxn` - if the `Txn` troubles you ignore `Txn`.
   It works without needing explicit application control - c.f. SQL has "auto 
commit".
   
   The datastructures behind GraphTxn are a Java port of the structures in 
Scala.
   
   I don't know ONT-API in detail - what is the contract for the application?
   (OWL API doesn't mention it)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to