¡@

Home 

c++ Programming Glossary: shared_memory

A simple C++ shared memory program written on linux: segmentation fault

http://stackoverflow.com/questions/8189638/a-simple-c-shared-memory-program-written-on-linux-segmentation-fault

type vector string pids int main int segment_id LOCK shared_memory struct shmid_ds shmbuffer int segment_size const int shared_segment_size.. IPC_EXCL S_IRUSR S_IWUSR Attach the shared memory segment. shared_memory LOCK shmat segment_id 0 0 printf shared memory attached at address.. 0 0 printf shared memory attached at address p n shared_memory Determine the segment's size. shmctl segment_id IPC_STAT shmbuffer..