I am trying to use MPI Distributed Simulation feature of NS-3. I have implemented an application and a node class in my module. I also have a factory class as a singleton object. Do I have to consider synchronization using monitors and Mutex in my singleton class?
In some of the functions I am changing class variables and therefore it looks like that I should consider thread safety but I am not sure how MPI works and if it actually creates one instance of the object or it creates separate objects in every process.
Thanks