shared memory and message queues

Hi,

According to my understanding..
When message queues are used, when a process post a message in the queue and if another process reads it from the queue then the queue will be empty unlike shared memory where n number of processess can access the shared memory and still the contents remain there until its deliberately removed.
So when i want to use an IPC between processess and i want the contents to be there until deliberately removed i feel shared memory is the option and not the message queues.. could anyone please clarify me?

Thanks

try to use the ipcs command , there we shall be getting the share memory infor and process related info

Please check out Beej's Guide to Unix Interprocess Communication - it is very helpful.