Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Is there a way to free the Tk MainLoop without getting into parallel programming?

by rcaputo (Chaplain)
on Jul 22, 2009 at 17:15 UTC ( #782383=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is there a way to free the Tk MainLoop without getting into parallel programming?
in thread Is there a way to free the Tk MainLoop without getting into parallel programming?

It depends on the nature of the computations. If you're looping through that file yourself:

my $t = time(); while (<$input_fh>) { process_a_line(); if (time() - $t >= 1) { $widget->update(); $t = time(); } }

If the entire file is being atomically processed, then you'll need to get deeper into parallel programming.

  • Comment on Re^3: Is there a way to free the Tk MainLoop without getting into parallel programming?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-10-02 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (7 votes). Check out past polls.

    Notices?