Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Do I need threading for my GUI?

by BrowserUk (Patriarch)
on Feb 19, 2008 at 19:13 UTC ( [id://668871]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Do I need threading for my GUI?
in thread Do I need threading for my GUI?

Sure:

Existing script:

... use threads; ## Additional line 1 ... async{ ## Additional line 2 ## existing, long running, cpu intensive code here }; ## Additional line 3 ...

Now the gui will be responsive, whilst the long running code runs full speed without changes.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

    No recent polls found