Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to pass sockets to different threads?

by bl0rf (Pilgrim)
on Dec 31, 2003 at 00:46 UTC ( #317811=note: print w/ replies, xml ) Need Help??


in reply to How to pass sockets to different threads?

I remember reading in Apache's docs that it preforks several children, has them all try to lock onto a semaphore - the one that succeeds takes a connection and another one child takes its place as listener. If you really need Select functionality I also suggest forking and having a separate IO::Select object for each child ( as you can see I've gone fork hyper ).


Comment on Re: How to pass sockets to different threads?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2015-07-30 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls