Hi, I’m new to this forum so I didn’t know where to post this.
I’m working on a C++ binary which creates and fills multiple TH1F histograms with a huge amount of entries. To speed things up, I decided to try multithreading the program using the TThreadedObject class and wrapping my histograms in it.
I just can’t work out whether my project needs the following two lines:
ROOT::EnableImplicitMT(NTasks); ROOT::EnableThreadSafety();
Here NTasks
is the number of threads I want to launch.
Also, is it a good idea to use TThreadedObject? Or is it better to use plain standard library threads and mutexes?