C++ iostreams: Unexpected but legal multithreaded behaviour | Hacker News Reader