comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Shared Memory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Shared Memory [message #39590] Thu, 27 May 2004 06:28
Miguel Angel Cordoba is currently offline  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
_________________________________________________________
[Message index]
 
Read Message
Previous Topic: Re: Envi Query
Next Topic: Shared Memory

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:03:43 PDT 2025

Total time taken to generate the page: 0.02146 seconds