Yup Alan said and I liked it so much I put it on my quotes page,
http://www.bitmover.com/lm/quotes.html
Another one that I can't believe I forgot is from Rob Pike:
"If you think you need threads then your processes are too fat"
And one from me:
``Think of it this way: threads are like salt, not like pasta. You
like salt, I like salt, we all like salt. But we eat more pasta.''
Threads are a really bad idea. All you need are processes and either the
ability to not fork the VM (Linux' clone, Plan 9's rfork) or just good
old mmap(2). If you allow threads then all you are saying is that your
process model is so pathetic you had to invent another, supposedly lighter
weight, object to do the same thing.
Don't you think it is funny that Sun doesn't publish numbers comparing
their thread performance to process performance? Sure, you can find
context switch benchmarks where they have user level switching going on
but those are a red herring. The real numbers you want are the kernel
level context switches and those are just as expensive as the process
context switch numbers.
----- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/