Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: External controlling of a multi-threaded Windows perl program

by jplindstrom (Monsignor)
on Nov 02, 2007 at 13:57 UTC ( [id://648648]=note: print w/replies, xml ) Need Help??


in reply to External controlling of a multi-threaded Windows perl program

If you're doing a GUI it's a good idead to keep it in a thread of its own.

Create a thread first and don't load any GUI modules at all before that, then build the GUI and run main event loop in that one.

Use things like Thread::Queue or Thread::Queue::Any to communicate between the threads.

/J

  • Comment on Re: External controlling of a multi-threaded Windows perl program

Replies are listed 'Best First'.
Re^2: External controlling of a multi-threaded Windows perl program
by weismat (Friar) on Nov 02, 2007 at 14:36 UTC
    I am using Thread::Queue already. Most of my multithreaded modules use this module. Only if I need real two-way communication, than I use the cond_wait and cond_signal. I have some experience with POSIX threads and the queue implementation in Perl is really elegant.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found