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: Jeroen Ruigrok/asmodai <asmodai@xxxxxx>
Date: Wed, 11 Feb 2004 17:58:06 +0100

-On [20040211 17:12], Dan Melomedman (dan@xxxxxxxxxxx) wrote:
>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.

That's assuming you can even -start- a second process.  Too many open
source and/or commercial applications do not allow this.  Yeah, you're
right, but I guess my addition is your 'not entirely'. ;)

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

Is that so?  There's no way to yield() whilst blocking?

>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.

Isn't it always the case that if your design is right you don't have to
worry about anything? ;)

>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

Will do, haven't heard of state threads before to be honest...
Cheers!

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7  9D88 97E6 839B 2EAC 625B
http://www.tendra.org/   | http://diary.in-nomine.org/
Is there a place deep within, a place where you hide your darkest Sins..?



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