Samuel Thibault wrote:
> Da Zheng, le Wed 23 Dec 2009 10:21:50 +0800, a écrit :
>>> Anyway, deciding between shared memory or pure IPC is not really an
>>> issue.  I believe the more difficult part is how to make process
>>> actually perform IPCs securely.  It can probably be useful to check how
>>> shm was implemented.
>> Do you mean shm device in Linux or in Xen?
> 
> In Hurd, the patch from Marcus Brinkmann.
> (debian/patches/hurd-i386/submitted-sysvshm.diff in the debian glibc
> sources)
> 
OK, thank you.

One more thing: is it enough to only use something like spin_lock (or volatile 
variable + memory barrier) to protect a variable in shared memory between two 
processes?

Zheng Da


Reply via email to