Handles multiple clients on different threads