Linked by Eugenia Loli on Fri 4th Aug 2006 23:31 UTC, submitted by IdaAshley
Linux The LinuxThreads project originally brought multithreading to Linux, but didn't conform to POSIX threading standards. The introduction of Native POSIX Thread Library (NPTL) however, overcame many of these disadvantages. This article describes some of the differences between these two Linux threading models for developers who may need to port their applications or who simply want to understand where the differences lie.
Thread beginning with comment 149407
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[4]: man
by Cloudy on Sat 5th Aug 2006 16:19 UTC in reply to "RE[3]: man"
Cloudy
Member since:
2006-02-15

Hey! We did the best we could ;)

You try getting the hard realtime community, the threads as a programming model community, and the threads for SMP community to agree on a set of semantics some time.

Once NPTL is fully deployed, Linux will have half a threading system. Linus says it'll never have the other half, but I've got a bet that it will by 2015, if it's still around then.

Reply Parent Score: 1

RE[5]: man
by bservies on Sat 5th Aug 2006 16:24 in reply to "RE[4]: man"
bservies Member since:
2006-05-27

Actually, I have been pretty happy with NPTL. I don't think it is quite as solid as, say, Solaris threading, but it hasn't had as much time to cook, either.

Reply Parent Score: 2

RE[5]: man
by rayiner on Sat 5th Aug 2006 17:48 in reply to "RE[4]: man"
rayiner Member since:
2005-07-06

Could you elaborate on that last statement?

Reply Parent Score: 2

RE[6]: man
by Cloudy on Sat 5th Aug 2006 19:33 in reply to "RE[5]: man"
Cloudy Member since:
2006-02-15

For maximum efficiency across all SMP threaded workloads, you need the option of an M:N thread package with both kernel level and library level scheduling.

Linus and I have debated this off and on since 2000 and he says that Linux will never have M:N threads. But then, in 2000 he thought it would never have Posix threads. ;)

Reply Parent Score: 1

RE[5]: man
by corentin on Sun 6th Aug 2006 07:38 in reply to "RE[4]: man"
corentin Member since:
2005-08-08

> You try getting the hard realtime community, *the threads as a programming model community*, and the threads for SMP community to agree on a set of semantics some time.

The "threads as a programming model" community :] (a.k.a. the crack smokers).

Reply Parent Score: 1