jeudi 5 mai 2016

Can I use `std::this_thread::sleep_for()` with an MPI process?

MPI runs my program with multiple processes.

I'd one of these processes to sleep for a while so that it's using minimal CPU.

std::this_thread::sleep_for() looks like what I want, but that thread bit looks a little sketchy in this context.

Is it okay to do this?

Aucun commentaire:

Enregistrer un commentaire