Re: Re: overhead of process/task_struct in POSIX threads- why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Parav..

> Can you tell me how can I enable this support or how
> can I use the NPTL library in my linux kernel 2.6.10?

It should be automatically picked by your runtime linker, unless:
1. You set the environment variable to be something like:
LD_ASSUME_KERNEL=2.4.9
It will force the linker to use the old linuxthreads
OR
2. You explicitly rename or delete (watch out, don't do this!) the 
directory which contains NPTL enabled dynamic shared library. In Redhat 
9, this directory is /lib/tls

> Any flags to put in Makefile or something else?
No need to put any flags...

Anyway, about the extra thread, I am 99.99% sure that is the manager 
thread. IMHO, it would be a good idea to use strace/ltrace  to find out 
what really happens.. Pay attention to syscall like clone(), fork(), 
vfork...

regards,

Mulyadi.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux