On Tue, 28 Sep 2004 06:58:56 +0000 (UTC), Harald Massa
<cpl.19.ghum@spamgourmet.com> declaimed the following in
comp.lang.python:
[color=blue]
> see my tasktray collecting more and more icons of programs which just do a
> very tiny amount of work every half a second, and ... as them getting many,
> the computer begins to feel more sluggish.
>[/color]
Is this under Windows?
I've never seen Python threads creating icons. Are your threads
spawning (os.system, the popen* family, etc.) separate programs? It may
be that those spawns are not closing down properly (or the program
/they/ start never exits).
Or were you creating a new thread during each "activation"... If
the latter, you might need to have something doing a thread.join to
clean them out when they finish the work. Maybe a queue that each thread
puts its ID onto when finished, so the main program can get that ID and
perform a join. Daemons go away when the main program does, but
otherwise are designed to always be present to accept input (queue,
perhaps) If you start five daemons, but each only does one pass at a
task you may still have five idle daemons hanging around.
--[color=blue]
> ================================================== ============ <
>
wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
>
wulfraed@dm.net | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <[/color]