I'm currently working on ABM model implemented in C++ which utilize Monte Carlo dynamics. In large scales it run much to slow, so have to be converted into multi-threated application (at least up to 32 threats).

Theoretically the best way to synchronize would be mutex in each agent, but according to Stroustrup "mutex should be treated as a handler to limited system resource", so I doubt that it is possible to use millions of mutexes concurrently.

More WOJCIECH BORKOWSKI's questions See All
Similar questions and discussions