Re:Re:What to know detail about why Squid use single process.

From: <maer727@dont-contact.us>
Date: Wed, 24 Apr 2002 11:28:03 +0800 (CST)

Thanks, Basile pal!

What means "somehow informally continuation based"?

Best regards,
George Ma

----- Original Message -----
From: STARYNKEVITCH Basile
To: maer727@sohu.com
Subject: Re:What to know detail about why Squid use single process.
Sent: Tue Apr 23 20:32:12 CST 2002

> >>>>> "George" == maer727 <maer727@sohu.com> writes:
>
> George> Thanks, Basile pal! Why you say mono-thread decision is
> George> very heavy constraining, can you give me a more detailed
> George> description? Or, if it is boring and wasting time, can you
> George> introduce me some articles about the topic?
>
> Read the sources and the programmer's guide for details.
>
> Squid make a systematic use of callbacks {For historical?
> reasons, Squid does not use any multi-threading, like the
> pthread_* calls of Posix threads}. This implies that most of Squid
> input or output is not done directly thru a normal blocking i/o
> syscall, but instead registers a callback, which will be later called
> when i/o is possible (e.g. read data is available on a file
> descriptor). The systematic use of callbacks entails a very different
> programming style (somehow informally continuation based).
>
> See the use of eventAdd and commSetSelect in the code.
>
>
>
> N.B. Any opinions expressed here are only mine, and not of my organization.
> N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA.
>
> ---------------------------------------------------------------------
> Basile STARYNKEVITCH ---- Commissariat ?l Energie Atomique * France
> DRT/LIST/DTSI/SLA * CEA/Saclay b.528 (p111f) * 91191 GIF/YVETTE CEDEX
> phone:+33 1,6908.6055; fax: 1,6908.8395 home: 1,4665.4553; mobile: 6,8501.2359
> work email: Basile point Starynkevitch at cea point fr
> home email: Basile at Starynkevitch point net
>
Received on Tue Apr 23 2002 - 21:28:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:19 MST