共享内存中有一个队列。它确实在Linux (内核4.3.4)上工作,但在Mac上不起作用。Mac如何处理共享内存和linux如何处理共享内存有什么不同,这可以解释这一点吗?uses the space behind the struct.} shared_queue;
基本上,每个想要访问的人都会获得互斥锁,readPos表示应该在哪里读取下一个值如果共享内存的
The use of MAP_ANONYMOUS in conjunction with
MAP_SHARED is only supported on Linux since还将从哪里映射内存?在man页面上写着,The use of MAP_ANONYMOUS in conjunction with MAP_SHARED is only supported on Linux since kernel2.4.如何与其他进程共享与MAP_ANONYMOUS映射