0

Suppose there are several threads, each thread invokes

std::cout << 123;

for each statement, it should output 3 characters, '1', '2', and '3'. So does the C++ standard guarantees that the '1' '2' and '3' will not interleave? i.e., the system will not output the following result: 112233

Thanks

Wei Li
  • 1,847
  • 2
  • 10
  • 10

0 Answers0