Are pointers in a shared memory segment valid for a different process?
P.Garbha
pgd at bbt.se
Sat Aug 25 16:11:51 AEST 1990
In article <115 at ctbilbo.UUCP> ray at ctbilbo.UUCP (Ray Ward) writes:
>The most usual approach is to pick an address at which to map in the
>shared memory segment in *both* programs. If you pick an address that
Some systems/architectures might have restrictions to the allowable
addresses chosen. In a application using shared memory, that I have
made, the program that creates the shared memory, let's the operating
system choose the address, and write it as the first word in shared
memory. The next program to link up, then let's the os map just the
first word of the shared memory, reads the starting address, unmaps
the memory, and finally maps it to the correct starting address, and
length.
I was using Xenix/386 (The intel 386 i a segmented architecture)
More information about the Comp.unix.questions
mailing list