Operating System - Linux
1753879 Members
7637 Online
108809 Solutions
New Discussion

IPC shared memory with a linked list or a hash table

 
Pedro Dinis
Advisor

IPC shared memory with a linked list or a hash table


currently i am using a struct but everyone is changing the configuration file and i have to change the code every time.

i am now investigating a way to use shared memory with a hash table.

i have tried with a map but the process dies when i am writing the map to the memory segment without leaving a note.

thanks
SLB SLB SLB Glorioso
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: IPC shared memory with a linked list or a hash table

As I mentioned before, you need to change the container allocator to put its memory into your shared memory area.
http://h30499.www3.hp.com/t5/Languages-and-Scripting/map-gt-insert-it-killing-my-procees-the-program-just-aborts/m-p/4036321


Once you get the allocator written, you can use it with any STL container.