How does linux really delete shared memory variables in two processes

How to really delete shared memory variables in two processes

How to completely delete shared memory variables in two processes

Sometimes the system needs to completely delete the shared variable when the memory is insufficient or the shared variable is not used, especially in the embedded system with tight memory resources.

General idea: You
need to operate in both processes to completely delete shared memory and release memory space

Guess you like

Origin blog.csdn.net/mao_hui_fei/article/details/113085886