On Fri, Jan 25, 2002 at 10:29:59AM -0500, Ludovic Courtès wrote:
> > Well, the binaries are shared, just as any program is on Unix.  If
> > fifteen people are all running emacs, they all share the same code
> > segment for the emacs program.  Same for Hurd servers.
> 
> Ok, I didn't know about it. But I'm wondering how, and which part of the OS
> `recognizes' that such or such executable has already been loaded and is
> available at such address?

It's the pager in the filesystem server.  If you io_map the same file twice,
you get the same memory object in both cases.  See ext2fs/pager.c and
libdiskfs/io-map.c, esp the function diskfs_get_filemap.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to