Re: Forking

Matthias Urlichs (smurf@work.smurf.noris.de)
15 Jun 1997 18:29:38 +0200


Andrej Presern <andrejp@luz.fe.uni-lj.si> writes:
> >
> > Yes. You should use LinuxThreads[1] which are kernel-pthreads. They are
> > able to share the same address space but are scheduled like a real
>
> Is it possible to prevent the thread from using certain parts of
> the process address space - like if I loaded some code in the shared

No. "Shared address space" really means "exact same address space".

> memory and fired it as a thread, can I effectively prevent such a
> thread from accessing the memory of the main program (or other such
> threads)?
>
If you need to share selectively, use shared memory.

-- 
Psychologists would like to do it with 95% confidence.
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42