ROOT & multithreading

Hello everyone,
Maybe this is quite a naive question, but I haven’t found anything conclusive on the issue.
In our multi-threaded program we are using TH* histograms in many places mainly as data holds that are published to a DAQ framework in the end. While I understand it might not be safe to access the same object from multiple threads without a locking mechanism, I am unsure whether some kind of “global ROOT lock” is needed when performing actions on different histogram objects(CTOR, Fill, …).
Thanks for your help!

Hi,

this is far from a trivial question.
Currently mt access to histogram is not supported. The only way to deal with it is indeed a resource protection mechanism, locks being one of them.

Cheers,
Danilo