Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: GUI in Perl/Tk runs slow unless threads sleep periodically

by GrandFather (Saint)
on Mar 23, 2011 at 23:06 UTC ( [id://895145]=note: print w/replies, xml ) Need Help??


in reply to GUI in Perl/Tk runs slow unless threads sleep periodically

If your non-GUI threads are processor bound they will consume as much of the processor time as they are allowed by the OS and that will impact on any other processor bound thread such as your GUI thread. By chucking in some "down time" in your processor bound threads you give other threads a chance to get some work done. Probably 1 second is excessive. Most likely you could reduce that to 1ms and still have a responsive GUI thread without impacting the processing threads much.

True laziness is hard work
  • Comment on Re: GUI in Perl/Tk runs slow unless threads sleep periodically

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-25 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found