Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: A server that has a fool as its client: itself

by sundialsvc4 (Abbot)
on Feb 10, 2011 at 18:16 UTC ( [id://887515]=note: print w/replies, xml ) Need Help??


in reply to A server that has a fool as its client: itself

You can go a long way with a “simple poll() loop” architecture.   The app listens simultaneously to one-or-more sockets and responds appropriately when activity occurs on each socket ... but the activity is not actually “concurrent.”   Instead, the application is doing exactly one thing at a time, but in an unpredictable sequence, and it all works just fine because I/O, including network I/O, is much slower than the CPU.   (CPUs think in terms of nanoseconds...)   As long as each unit-of-work that is to be done requires only an insignificant amount of wall-time to achieve, this internally very-simple architecture works beautifully.   So, I would start with that design and fully expect to also finish with it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-25 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found