write single linux network server and run in parallel