> --On Tuesday, May 21, 2002 01:52:37 PM -0700 Linus Torvalds
> <torvalds@transmeta.com> wrote:
>
> > I don't see any reason to start using some fixed-mode semantics without
> > seeing some stronger arguments on exactly why that would be a good idea.
> > We have used up 11 of 24 bits (and more can be made available) over the
> > last five years, and there are no obvious inefficiencies that I can see.
>
> Ok, sounds reasonable. I'll add the bits as I go, then.
One reason for it would be that it would be more efficient. All the various
shared state needed for POSIX thread group emulation could be put into a
single structure with a single reference count.
With clone flags you need one pointer in task_struct per flag and
handling of the reference count for each data structure and allocation/freeing
from various slabs for a real fork.
(basically lots of atomic operations at fork time + bloating of task_struct)
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/