How?

logo PHP

=> Solution configure a pool (launch a set of PHP's process) with load balancer
It's an Architrecture solution use by: Apache, Nginx, Jetty etc.

logo Node.JS

=> Solution based on callback, each function enters inside the loop (only one by one) then sends to the system
Then, computation ends the loop receives and trigs callback
It's an Applications Framework solution use by: Node.js, EventMachine(Ruby), Tornado(Python), etc.

Event Loop schema

Event Loop

logo Vertx reactive

Hybrid Model