This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NPTL: effect of not using CLONE_THREAD in pthread_create


On 11/29/2013 12:24 PM, Inti Glez wrote:
> Hello,
> 
> I was trying to avoid the use of CLONE_THREAD in Linux. Why? Because
> of cgroups. In short, I want to limit resource consumption per
> threads. Nevertheless, in the current implementation of cgroup you
> can only specify resource constraint on per Thread Group basis. I
> though that modifying how glibc creates threads in Linux should be
> enough.

You can't avoid the use of CLONE_THREAD. Removing CLONE_THREAD will
break the NPTL thread implementation which relies on the semantics
of CLONE_THREAD for several reasons including signals.

You should instead spend your efforts enhancing cgroup.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]