Re: Persistent Threads & Synchronisation

2006-11-27 Thread Paul McGuire
"Matthew Tylee Atkinson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I appear to be having some problems with the isAlive() method of > detecting if a thread is alive/active/running or not. I'd be grateful > for any advice. > Your comments about restartable threads got me thinkin

Re: Persistent Threads & Synchronisation

2006-11-27 Thread Matthew Tylee Atkinson
On Sun, 26 Nov 2006 19:38:20 +, Dennis Lee Bieber wrote: > Methods defined in a thread class but called from outside the > running thread run in the environment of the caller, not as part of the > thread (and if the method manipulates state you may run into conflicts). Thanks very much;

Re: Persistent Threads & Synchronisation

2006-11-26 Thread Matthew Tylee Atkinson
On Sun, 26 Nov 2006 13:24:21 +0100, Marc 'BlackJack' Rintsch wrote: > There seems to be a misunderstanding of threads. You don't call functions > in a thread from the main program. If you call a function from the main > thread then the function is executed in the main thread. That's true for > a

Re: Persistent Threads & Synchronisation

2006-11-26 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Matthew Tylee Atkinson wrote: > They way I want it to work is this: The downloading thread, when > spawned, stays alive for the duration of the program. Occasionally the > main program will call a function in it to download the data and save it > as files on disk. Then,