I would like to know if Boost mutexes and semaphores store any information on the disk, or if there is an option to avoid that (e.g. storing the data in a memory block).
I care about this detail both for performance reasons, and also to avoid throwing my SSD away too soon…
Thank you.
They’re purely in memory. The only way anything would end up on disk would be if that particular memory got written out to the paging file. If that does happen, however, it’s not going to do any more to your SSD than anything else being written to the paging file.