Re: clone() and pthreads?

Alan Cox (alan@cymru.net)
Thu, 2 May 1996 23:18:24 +0100 (BST)


> assumes it received an extra parameter, a pointer to a clone_options
> structure, which currently looks like this:
>
> struct clone_options {
> int pid; /* desired pid */
> int task; /* desired task id */
> int cpu; /* desired cpu (currently ignored) */
> };

Yahh boo ;). Make then pid_t and __u32 and a cpu mask. Im just about to add
some CPU binding stuff for SMP and that looks ideal (pid/task ignored in
my case).

> I'm planning on using more clone extensions in the future to support
> remote fork.

Im dying to see how well remote fork with an fd that is an mmap() anonymous
area can be made to work. If that can be done the Linux/MC will be nice.

Alan