[lkml]   [2001]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Alan Cox quote? (was: Re: accounting for threads)
On Tue, Jun 19, 2001 at 08:58:20AM -0700, Dan Kegel wrote:
> wrote:
> >
> > On an unrelated note:
> >
> > I noticed the quote below in your message. Is this a true quote or just a
> > joke going around? I have tried believing it is just a joke but I am
> > scared it is not.
> >
> > >--
> > > "A Computer is a state machine.
> > > Threads are for people who can't program state machines."
> > > - Alan Cox
> Alan, did you really say that, or are people taking your name in vain?

Yup Alan said and I liked it so much I put it on my quotes page,

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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:55    [W:0.359 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site