lkwt in DragonFly

Dan Melomedman dan at devonit.com
Wed Feb 11 08:06:36 PST 2004


Jeroen Ruigrok/asmodai wrote:
> User-space thread-based pthread implementation (N:1):
> cons:
> - no advantage of multiple CPU loading

Not entirely true. Just bind a second process to a second CPU for
example. This is very efficient if there is no interprocess
communication between these.

Another con: A thread blocking on IO will block the whole process.

Another pro: With many libraries you don't need to worry about mutexes,
race conditions, and thread-safety in general if your app's design is
right.

Take a look at state threads and some of the papers there. You may
just find a few interesting ideas there. state-threads.sf.net





More information about the Kernel mailing list