Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Signals vs. Windows

by nikosv (Deacon)
on Oct 04, 2012 at 10:47 UTC ( [id://997218]=note: print w/replies, xml ) Need Help??


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

I see,so you mean that the child thread can't poll. What if he combines polling the event with non blocking IO ?

Replies are listed 'Best First'.
Re^4: Signals vs. Windows
by BrowserUk (Patriarch) on Oct 04, 2012 at 11:46 UTC
    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

Log In?
Username:
Password:

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

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

    No recent polls found