Re: Forking

David Mentre (mentre@cairo.seriat.fr)
13 Jun 1997 15:45:19 +0200


Dieter Kaeppel <tires@nuernberg.netsurf.de> writes:

> Is it possible to create a new process which shares the data with the
> parent?
>
> (For example to use two processors in the same programm)

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
process (in fact, those threads are created with the shadow system
call clone() which creates, AFAIK, a duplicate of a process sharing
the same address space).

[1] http://pauillac.inria.fr/~xleroy/linuxthreads/

-- 
David Mentr\'e / CERSIAT-BAE / Sys admin <mailto:David.Mentre@seriat.fr>