multi threaded chat room in c