Re: New to threads. How do they work?

2006-07-22 Thread Edmond Dantes
Dennis Lee Bieber wrote: > On Sat, 22 Jul 2006 17:19:22 +1200, Lawrence D'Oliveiro > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > >> >> Perhaps because with threads, data is shared by default. Whereas with >> processes, it is private by default, and needs to be explicitly

Re: New to threads. How do they work?

2006-07-22 Thread Grant Edwards
On 2006-07-22, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >> 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 th

Re: New to threads. How do they work?

2006-07-22 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Dennis Lee Bieber wrote: > On Sat, 22 Jul 2006 17:19:22 +1200, Lawrence D'Oliveiro > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > >> >> Perhaps because with threads, data is shared by default. Whereas with >> processes, it is private by def

Re: New to threads. How do they work?

2006-07-21 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Grant Edwards wrote: > On 2006-07-21, Lawrence D'Oliveiro <[EMAIL PROTECTED]> > wrote: >> In message <[EMAIL PROTECTED]>, gel >> wrote: >> >>> I am attempting to understand threads to use in a network app which I >>> am writing. >> >> It is written, somewhere in the

Re: New to threads. How do they work?

2006-07-21 Thread Grant Edwards
On 2006-07-21, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, 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

Re: New to threads. How do they work?

2006-07-21 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, 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 thr

Re: New to threads. How do they work?

2006-07-20 Thread Dermot Doran
Hi   I think the answer to your last question is that the threading module provides a high level interface (i.e. easier to  use) to the thread module.  The thread module is very low-level.  Any threaded python scripts I have written (not expert) have used the threading module which is, in my opini

Re: New to threads. How do they work?

2006-07-19 Thread gel
Dennis Lee Bieber wrote: > On 19 Jul 2006 19:08:12 -0700, "gel" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > import thread > > > Step one... Skip the thread module and use threading module instead. > > > def create(): > > > > pythoncom.CoInitialize() > >