example of multithreaded problems