Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: Signals vs. Windows

by BrowserUk (Pope)
on Oct 04, 2012 at 11:46 UTC ( #997224=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Signals vs. Windows
in thread Signals vs. Windows

What if he combines polling the event with non blocking IO ?

That is certainly an option, but once you move to non-blocking IO and polling, a simple shared variable transitioning from false to true is far simpler than a kernel-based event mechanism.

The problem with non-blocking IO is that you then have manually replicate all the functionality of readline, eof etc. in user code which is a retrograde step. Especially when there are simpler ways.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.

RIP Neil Armstrong

Comment on Re^4: Signals vs. Windows

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-11-29 05:40 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (747 votes), past polls