Home »
Public Forums »
archive »
Shared Memory
Shared Memory [message #39590] |
Thu, 27 May 2004 06:28 |
Miguel Angel Cordoba
Messages: 13 Registered: April 2004
|
Junior Member |
|
|
Hello all,
I am using shared memory and I have a problem with the shmunmap
procedure. I have 4 process working concurrently; when one off the
process starts the first time it maps the shared memory ok. Then if
the second, third o fourth process unmap the shared memory the
memory segment is not destroyed and if one off this process re-starts
the shared memory it's ok. The problem is if the first process unmap
the memory because then the memory segment is destroyed and the
other process loses the memory. Then if the first process re-starts
and maps the shared memory this memory is diferrent than the others.
I want to destroy the shared memory only when the last alive process
ends and I don't want to use the "DESTROY_SEGMENT" keyword
off the shmmap routine. Any ideas?
Thank you.
--
_________________________________________________________
Miguel Angel Cordoba
---------------------------------------------------------
Grup de Recerca Aplicada en Hidrometeorologia (GRAHI-UPC)
http://www.grahi.upc.es
---------------------------------------------------------
Centre membre de la Xarxa d'Innovacio Tecnologica XIT
http://www.cidem.com/xarxait
_________________________________________________________
|
|
|
Current Time: Wed Oct 08 17:47:29 PDT 2025
Total time taken to generate the page: 0.00489 seconds