Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Threading Tk

by {NULE} (Hermit)
on May 17, 2002 at 23:40 UTC ( [id://167441]=note: print w/replies, xml ) Need Help??


in reply to Threading Tk

Hi dooberwah,

We actually just discussed this topic in some detail a day ago. Take a look here for some hopefully useful thoughts.

Basically this is a usable technique that can help you achieve your goal of making your app appear not to block. Just for a quick, drawn-on-a-napkin design of the app, I would think about forking first, have the parent do the Tk stuff and the child do the LWP stuff. Connect them with the socket of your choice and then take a look at IO::Socket and IO::Select for doing non-blocking communication. Also recommended is Lincoln Stein's excellent book Network Programming with Perl, which covers the two modules in great detail.

Good luck,
{NULE}
--
http://www.nule.org

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://167441]
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: (5)
As of 2024-04-19 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found