Re: 2.4.10pre7aa1

Christoph Hellwig
2001-09-16T19:04:31Z

On Sun, Sep 16, 2001 at 07:23:16PM +0200, Andrea Arcangeli wrote:
> > I can't quite remember if it was Linus or Larry who said:
> >
> > "Threads are for people who don't understand state machines"
> >
> >
> > If you cannot make your code clean without adding another
> > thread, it's probably a bad sign ;)
>
> Ask yourself why libaio in glibc uses threads.

Because glibc always uses the more bloated appropeach if there is a choice?

/me runs

> When there's no async-io
> hook you have no choice. Adding the hook is an advantage if you're going
> to use it during production, much better than
> rescheduling/creating/destroying various threads during production, but
> if you only need to register the hook once per day you'd waste time all
> the production time checking if somebody is registered in the hook.

I'd really like to see Ben's worktodo's in 2.4 - they are usefull even
without his whole asynchio framework and don't need big kernel changes..

Christoph

--
Whip me. Beat me. Make me maintain AIX.