Re: Threading in linux

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

 



Rick Brown wrote:

Could you hint upon the kernel features required for NPTL? May be a link?

I know very little about this, but by coincidence (the application program I work on got a nice bugfix because of this) I can tell you one kernel difference on x86_64 kernels that support NPTL.

For NPTL on x86_64, the kernel reserves a register for thread-ID. That register is swapped as part of the context switch the kernel does. In the older LinuxThreads, thread-ID was established by looking up a stack address in a table. In the LinuxThreads implementation, thread-ID was broken whenever a thread ran on the alt-stack.

John Aspinall

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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