Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found