Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: sockets and such in Perl

by spurperl (Priest)
on Jul 03, 2005 at 16:26 UTC ( [id://472036]=note: print w/replies, xml ) Need Help??


in reply to sockets and such in Perl

A common pattern in multi process/thread design you could use to simplify your life here is the "manager-worker model".

Shortly, one process acts as a manager and "spawns" workers as needed. Each worker knows only of its manager - through a single socket. The worker's task is simple - it gets a job from the manager, does it and reports back. The manager handles the coordination between workers and distributes jobs for them.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-25 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found