A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2002-09-14 11:23 AM

From: Dalian ,CHINA
Registered: 2002-08-15
Posts: 6

Re: see shared memory with ipcs

when i look about shared memory with ipcs -m , i am showed:

IPC status from <running system> as of Sat Sep 14 18:21:50 CST 2002
T         ID      KEY        MODE        OWNER    GROUP
Shared Memory:
m          0   0x50000a1e --rw-r--r--     root     root
m        301   0x41000fcb --rw-rw-rw-     root    other
m        202   0x41000373 --rw-rw-rw-     root    other
m        103   0x41000378 --rw-rw-rw-     root    other
m          4   0x41000377 --rw-rw-rw-     root    other

i can tell the second to the fifth list, they are created by our program, but what about the first one?   why the owner and group is "root   root "  , while others are "root other"?

in fact , the ID 0 is not always 0, it is changed from a non-zero number. but we also don't know why it will be like this  and who create it : OS ?


#2 2002-09-30 05:50 PM

From: Sol 3
Registered: 2002-06-12
Posts: 911

Re: see shared memory with ipcs

Some systems do use some IPC mechanisms in the kernel for communication between core components...  also most windowing systems (gnome, kde and so forth) also use shared segments in some fashion... so the guess is that is what you are seeing...


"The only difference between me and a madman is that I'm not mad."

Salvador Dali (1904-1989)


Board footer

Powered by FluxBB