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

Re^2: convert a single thread application to multithread with GUI

by ultibuzz (Monk)
on Jul 11, 2007 at 13:08 UTC ( #626002=note: print w/ replies, xml ) Need Help??


in reply to Re: convert a single thread application to multithread with GUI
in thread convert a single thread application to multithread with GUI

thx for your tips, and yes i just seek some basic advice at the moment, so there is no code yet.
either i want to use Tk or Gtk.

kd ultibuzz


Comment on Re^2: convert a single thread application to multithread with GUI
Re^3: convert a single thread application to multithread with GUI
by zentara (Archbishop) on Jul 11, 2007 at 13:17 UTC
    Here's a simple Tk idea. (I use END: blocks in the thread to emphasize what is happening, but simple returns will suffice)

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum

      thats an awsome exaple, now i know how to make a cmd like text scrollbox ;)
      also the thread reuse thing is now a bit clearer
      thx for the nice example and i hope it will push me in the right direction

      kd ultibuzz

        One thing I forgot to mention is that threads can share a filehandle thru the fileno, so that can help in logging. Your main thread can open the FH to the log, then you send the fileno of the FH to the threads, and they can print to it. See FileHandles and threads

        I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-12-28 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (182 votes), past polls