C++ iostreams: Unexpected but legal multithreaded behaviour
ds9a.nl