Quiz on C++ Multithreading