NetBSD now has native pthreads!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Sunday, January 19, 2003 - 6:14 pm

http://www.netbsd.org/Changes/#merge-nathanw_sa

After NetBSD supports symmetric multiprocessing (SMP) on a number of
systems for some time now, support for native threads was added by merging
the nathan_sw branch that contains a Scheduler Activations based threads
implementation by Nathan Williams and Jason Thorpe.

SMP means running processes on more than one CPU in parallel. (With some
care-taking from the kernel that both CPUs don't step on each other with
respect to writing to kernel data structures etc.).

Threading means splitting up a process into several (well :) threads, and
let them run on either one or more than one CPU. This is basically an
application-layer issue, in contrast to SMP which happens inside the
kernel. Having SMP available helps for performance in threads systems as
threads can be ran in parallel on several CPUs, but SMP is not strictly
necessary for a threaded system.

Many applications today use a threaded software architecture (over the
classical Unix "fork"ed processes), and so having some efficient threads
implementation is an important goal of the NetBSD project.

With the Scheduler Activations based work that Jason and Nathan made, this
is a very efficient implementation that can map N userland threads to M
kernel threads, and there is no need to have one kernel thread for each
userland thread, like some other systems (used to?) have, and which kills
performance for many threads.

With native threads now available in NetBSD-current, applications from
pkgsrc will readily pick it up upon rebuild, and things will be fixed over
the coming time.

For instructions on how to port existing applications and to use threads
in your own programs using the new libpthreads that come with NetBSD now,
see http://www.humanfactor.com/pthreads/.

(Thanks to Hubert Feyrer for the detailed press
release.)

--
http://www.netbsd.org -
Multiarchitecture OS, no hype required.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NetBSD now has native pthreads!, Jan Schaumann, (Sun Jan 19, 6:14 pm)
NetBSD Security Advisory 2007-007: BIND cryptographically we..., NetBSD Security-Officer, (Thu Sep 13, 5:56 pm)
The pkgsrc-2008Q2 Release, Alistair Crooks, (Sat Jul 26, 3:45 am)
Summer of Code student applications period extended, Jan Schaumann, (Wed Apr 2, 1:36 am)
NetBSD Security Advisory 2008-003: IPsec in IPv6 Denial of S..., NetBSD Security-Officer, (Thu Feb 28, 7:37 pm)
Announcing NetBSD 5.0, Soren Jacobsen, (Wed Apr 29, 5:49 pm)
anoncvs service unavailable until further notice, Christos Zoulas, (Thu Dec 23, 2:27 pm)
Timelines for upcoming releases, James Chacon, (Mon May 2, 6:51 pm)
NetBSD Security Advisory 2005-001: Crypto leaks across Hyper..., NetBSD Security-Officer, (Thu Jun 30, 6:12 pm)
cvsweb offline, SODA Noriyuki, (Thu Aug 11, 10:46 am)
Announcing update 2.0.3 - source only, James Chacon, (Mon Oct 31, 11:52 am)
[ANNOUNCE] pkgsrc-users mailing list, Johnny C. Lam, (Thu Feb 23, 7:47 pm)
NetBSD Security Advisory 2006-007: mail(1) creates record fi..., NetBSD Security-Officer, (Wed Mar 29, 9:31 pm)
NetBSD Security Advisory 2006-011: IPSec replay attack, NetBSD Security-Officer, (Wed Apr 12, 10:33 pm)
Promote BSD and Share the Wealth, Chris Coleman, (Thu Apr 18, 7:38 pm)
New Developers, Jan Schaumann, (Mon Jul 1, 5:55 pm)
Announcing the release of NetBSD 3.0.1, Matthias Scheler, (Mon Jul 24, 2:02 pm)
Organizational Changes to the NetBSD Project, Alistair Crooks, (Fri Sep 1, 3:36 am)
NetBSD 5.0_RC2 binaries available for download, Soren Jacobsen, (Tue Feb 10, 11:43 pm)
NetBSD developer's summit and hackathon, Jan Schaumann, (Sat Oct 4, 2:02 pm)
NetBSD Security Advisory 2009-010: ISC dhclient subnet-mask ..., NetBSD Security Officer, (Tue Jul 14, 5:31 pm)