http://www.perlmonks.org?node_id=686083


in reply to Tk with threads

Creating new threads inside dispatched closures from within Tk's internals is probably a very bad idea. Frankly, spawning a thread from *any* closure is probably a bad idea (threads already have a enough issues with non-determinism).

I'd recommend creating a Thread::Queue, then creating a thread (or pool of threads) and using your Button dispatch to forward command/control msgs to the threads.


Perl Contrarian & SQL fanboy