Demo code for sample multithreaded server