Conclusion
Using a small program and successively improve it was quite enlighting. First, with each step more interleavings of threads were possible; therefore, more different values for x
and y
were possible. Second, the challenge of the program increases with each improvement. Even for this small program, CppMem provides invaluable services.