Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Tk with threads

by renodino (Curate)
on May 12, 2008 at 14:09 UTC ( #686083=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Tk with threads

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://686083]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-26 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls