Multithreaded Variant of simpleserver