LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Shared Memory/ Semaphores (https://www.linuxquestions.org/questions/programming-9/shared-memory-semaphores-333552/)

wildem 06-14-2005 02:17 PM

Shared Memory/ Semaphores
 
Does anyone have a good source of information on this topic.
To be specific, i was researching the issue of shared memory for IPC memory management and have found a lot of the same genric answers.

My question was whether the shared memory which is allocated by shmget() resides on process heap/stack and can it be used to share the stack space?

I have been looking at some material which summarizes the shared memory as linked to process address space. Thanks for any advice.

Hko 06-14-2005 03:41 PM

FWIW, by intuition I'd say shared memory on the stack will not be possible.

shishir 06-14-2005 10:14 PM

the answer to you first part of the question is : it is neither from the stack or heap..but from an area between the two...this area is basically mapped as shared memory by your kernel..i doubt if you can use it to share the stack space ??? ((not sure what that means..)cos in that case you are trying to share the stack space among two processes...not possible, if i got you rite)

wildem 06-20-2005 01:13 PM

Thanks

This topic was quite a doozie to finalize an answer. My prof had a half hour discussion about it with the class. I hope I still remember what he said.


All times are GMT -5. The time now is 12:49 PM.