DragonFly BSD
DragonFly kernel List (threaded) for 2004-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: lkwt in DragonFly


From: Dan Melomedman <dan@xxxxxxxxxxx>
Date: Wed, 11 Feb 2004 11:06:04 -0500

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



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