I am new to shared memory programing, and I am working on Solaris. I
have been successful in using shmget and shmat to share a segment of
memory and attach it and access from another program.
Now I need to allocate memory dynamically. So I have written a class
to allocate memory from the shared segment not from heap. But now I am
having the problem when freeing memory because it is going to keep
holes in my shared portion. What I have been using was the starting
point of the shared memory portion with an offset of ...