New to threads. How do they work?

Grant Edwards grante at visi.com
Fri Jul 21 11:23:52 EDT 2006


On 2006-07-21, Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:
> In message <1153361291.923692.45330 at s13g2000cwa.googlegroups.com>, gel
> wrote:
>
>> I am attempting to understand threads to use in a network app which I
>> am writing.
>
> It is written, somewhere in the philosophy of *nix programming, that threads
> are a performance hack, to be avoided wherever possible. Use processes in
> preference to threads.

I've never understood the aversion people seem to have to
threads.  Especially in Python they seem very straightforward
to use and easy to understand.  I find IPC between processes is
much more work to do and difficult to get right.

Maybe it's just because threads are what I'm used to, since
I've been using them for 20+ years -- most of the platforms for
which I write don't have "processes".

-- 
Grant Edwards                   grante             Yow!  INSIDE, I have the
                                  at               same personality disorder
                               visi.com            as LUCY RICARDO!!



More information about the Python-list mailing list