Multithreaded server skeleton