Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Do I need threading for my GUI?

by weismat (Friar)
on Feb 18, 2008 at 10:05 UTC ( [id://668498]=note: print w/replies, xml ) Need Help??


in reply to Do I need threading for my GUI?

I think that perl threading works better than its reputation - the main drawback is that you can not share references/objects.
If you start to use threads, than I would suggest you to work with the Thread::Queue for anything which is more complex for synchronisation - consider to work with polling in the beginning.
Threading will become only complex if you need to display the results in the TK window.

Replies are listed 'Best First'.
Re^2: Do I need threading for my GUI?
by hipowls (Curate) on Feb 18, 2008 at 10:25 UTC

    Whilst the default is to not share data between threads variables can be declared as shared, see Threads and Data for examples.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found