swapcontext() slow

Godmar Back godmar@gmail.com
Thu Jan 21 17:53:00 GMT 2016


On Thu, Jan 21, 2016 at 12:47 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On 21 Jan 2016 12:24, Godmar Back wrote:
>> On Thu, Jan 21, 2016 at 11:40 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>> > these functions are deprecated/dead -- they no longer exist in the latest
>> > POSIX specification.  the preference would be to stop using them.  i think
>> > we might consider dropping them in a future glibc version.
>>
>> Interesting - what's replacing them, if anything?
>>
>> Will there be any support infrastructure for portable user-level threading?
>
> use pthreads.  there are usually implementations for whatever OS you
> want.  at least more portable than the context functions.

Pthreads does not provide user-level threading to my knowledge.
Over a decade ago, Linux rejected NGPT in favor of NPTL, and to my
knowledge even Solaris dropped M:N threading several years ago.
Languages such as golang usually roll their own.

 - Godmar



More information about the Libc-help mailing list