10-03-04 02:13 AM
b83503104@yahoo.com (b83503104) writes:
> I want to create an index and put it in memory, and allow it to be
> read by multiple programs (processes).
> The index table looks like this:
> 1 231
> 2 91
> 3 147
> ...
>
> There are million items, each row uses 2 int, so total size about
> 10MB. I only know how to create this in memory and use it by the SAME
> program which created it. I have no idea how I could let it stay in
> memory and be used by OTHER programs (and more than one at one time).
> Thanks
Put it into shared memory. Use shmget(), shmat() and friends.
HTH, Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!
[ Post a follow-up to this message ]
|