Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Operating System (http://www.go4expert.com/forums/operating-system-forum/)
-   -   Can multiple processes access the same memory space? How is this achievable? (http://www.go4expert.com/forums/multiple-processes-access-memory-space-t27869/)

Sage_sage 21Feb2012 23:14

Can multiple processes access the same memory space? How is this achievable?
 
Can multiple processes access the same memory space? How is this
achievable?

Scripting 29Feb2012 12:53

Re: Can multiple processes access the same memory space? How is this achievable?
 
Of course they can! This is achievable the programmatical way, I dont know what you exactly want, but you may have a look here: http://www.go4expert.com/showthread.php?t=27761

_eb75_ 18Feb2013 16:49

Re: Can multiple processes access the same memory space? How is this achievable?
 
As an illustrative example from Linux we can take a part from a manual page. The method with other operating systems is pretty the same.
An application can ask shared memory with an other application from OS.
-----------------------------------
shmget - allocates a shared memory segment int shmget(key_t key, size_t size, int shmflg);

shmget() returns the identifier of the shared memory segment associated with the value of the argument key. A new shared memory segment, with size equal to the value of size rounded up to a multiple of PAGE_SIZE, is created if key has the value IPC_PRIVATE or key isn't IPC_PRIVATE, no shared memory segment corresponding to key exists, and IPC_CREAT is specified in shmflg.
.........................


All times are GMT +5.5. The time now is 22:03.