Curses programming, threads?

Bartlomiej Rymarski bart at oceanic.wsisiz.edu.pl
Mon Dec 6 05:47:17 EST 2004


Carl Banks <imbosol at aerojockey.com> wrote:

> (...)
> But I recommend threads for this.  It's one of the easiest possible
> uses of threads.  There's no complex communication involved; locks and
> semaphores and stuff aren't required.  Just connect to the database in
> a subthread, and have it set a global flag just before it exits. 
> Animate in a loop in the main thread, checking the flag every
> iteration, and when it's true, you're done.
> (...)

I'll try to do this with threads then. Thanks for the answer.

-- 
Bartek Rymarski <bart at wsisiz.edu.pl>
$ %blow
bash: fg: %blow: no such job



More information about the Python-list mailing list