Dear ROOT-developers,
is it ok to have multiple running threads where each thread writes data to its own root file? Or can/will there be problems with some of the serialization / de-serialization mechanisms of ROOT?
Cheers,
Jochen
Dear ROOT-developers,
is it ok to have multiple running threads where each thread writes data to its own root file? Or can/will there be problems with some of the serialization / de-serialization mechanisms of ROOT?
Cheers,
Jochen
Hi Jochen,
Yes, having each thread writes to its own TFile object is fully supported and does not requires any specific locks (v5.34/25 and above is recommended).
Cheers,
Philippe.
PS. As a reminder, for ROOT thread support to be correctly enable you need to make sure that one TThread object is created for each thread.
Hi Philippe,
thx for the reply. This helps a lot performancewise .
Cheers,
Jochen