Multi threaded server