[Top][All Lists]

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

Re: [Chicken-users] thread scheduling: how about an idle-thread-hook?

From: Perry E. Metzger
Subject: Re: [Chicken-users] thread scheduling: how about an idle-thread-hook?
Date: 09 Aug 2002 14:20:30 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Peter Keller <address@hidden> writes:
> Unfortunately, event driven programs break down during lengthy network
> protocol exchanges with multiple entities. The code writing you have to do
> to make starvation less of a problem (suppose one daemon talking to 400
> clients at the same time multiplexing between them) makes you wish you
> had threads.

Actually, I've built event driven systems that handle thousands of
clients quite easily. Threads break down very badly by the time you
get to that size --- you end up spending more time in the scheduler
than actually executing anything.

Perry E. Metzger                address@hidden
"Ask not what your country can force other people to do for you..."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]