Verified Review

I am currently reviewing the documentation for the Interprocess Boost library and trying to figure out what the difference is.

Of all that I can say, the only difference is saving (shared Windows memory is freed when the last process exits, managed_shm is freed only when they say so), are there other differences, such as speed or the way that I am missing?

+5
source share
1 answer

The difference managed_shared_memory POSIX compliant, therefore it emulates portions that are missing windows_shared_memory (i.e. persistence). This is done by matching memory files .

The disadvantages of managed_shared_memory to be interconnected with other applications (using native Windows memory) and potentially accelerate on first access. The disadvantage of windows_shared_memory , on the other hand, is the lack of portability between systems.

+1
source

Source: https://habr.com/ru/post/1271421/


All Articles