28 } 3、System V 与Posix 共享内存区 二者的差别是:(1)Posix共享内存区是先调用shm_open然后再调用mmap,System V 共享内存区是先调用shmget再调用shmat。(2)Posix共享内存区对象的大小可在任何时刻通过ftruncate修改,而System V ...
28 } 输出:./shmat_rd_flag_regular get the share memory id is 32769in yangzd the attach add is 0xb7734000Now,try to write the memory.Segmentation fault 查看当前系统的共享内存信息,可以看到新建的共享内存段: