Updated multithreaded server

Updated the multithreaded server. Still have to implement signalling and
completing the call back function.