multithreading busy loop, class chat