On Thu, Jan 03, 2002 at 04:36:32PM +0100, Jochen Kunz wrote:
On 2002.01.03 14:07 Derek Peschel wrote:
[overlayed executables in 2.11BSD]
Random question -- Is there any way to use
overlays with shared text
segments (the "sticky bit")?
I don't know.
The shell is one of the usual candidates
for having its sticky bit set, but then it would have to keep track of
which users need which overlays... not pleasant.
Hmmm. I can only assume. The info
what overlay is active is part of the
process structure, as it is part of the memory management and handled by
the kernel. So it would be individual for every process. But I may be
completly wrong in that.
But the whole point of the sticky bit is that some of the process
information (whether a segment is swapped out or not) becomes shared
by more than one process. Thus the paradox.
Anyway, it sounds like you're having fun with your toy. :)
-- Derek