ipc

when we create shared memory ,and what is the default size of memory shared memory in Linux
If you are using the POSIX shmget() type functions there is no default size, you have to specify the size when it is created. There are min and max sizes, usually defined by the constants SHMMAX and SHMMIN, I think these are defined in limits.h

You can call shmget() specifying a size of 0 but this means you want to use a shared memory segment that has already been created.

I hope this helps

Bertha
Topic archived. No new replies allowed.