[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-help
Subject:    Re: Translators code duplicated? (weird question)
From:       Marcus Brinkmann <Marcus.Brinkmann () ruhr-uni-bochum ! de>
Date:       2002-01-25 16:13:23
[Download RAW message or body]

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 brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic