New to threads. How do they work?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Jul 22 01:19:22 EDT 2006


In message <12c1sc8ftj2m3a1 at corp.supernews.com>, Grant Edwards wrote:

> 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.

Perhaps because with threads, data is shared by default. Whereas with
processes, it is private by default, and needs to be explicitly shared if
you want that.



More information about the Python-list mailing list