Hi Stefan,

The RDF API is not thread safe. There are locking mechanisms on graphs
though but in general it is the users responsibility to use them. If you
acquire LockableMgraphs from a service in clerezza (e.g. tcManager) they are
(I think) instances of LockableMGraphWrapper. Single method invocations
(add, remove, addAll, ...) on LockableMGraphWrapper are locking the wrapped
graph. But if you want to have bigger blocks of code inside a lock you need
to lock yourself.

Best,
Daniel

On Wed, Feb 23, 2011 at 1:49 PM, Stefan Raupach <[email protected]>wrote:

> Hello,
>
> I'm new to clerezza and want to have multiple threads access the same
> MGraph instance simultaneously (using add, remove and GraphListeners). Would
> this be safe? What about the rest of the RDF API?
>
> Thanks in advance for your help,
> Stefan Raupach
>

Reply via email to