mem_model.1: semantics of data race

Discuss the OpenMP Examples document, updated for OpenMP 5.0
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
sfsiegel
Posts: 12
Joined: Mon Mar 24, 2014 4:47 pm

mem_model.1: semantics of data race

Post by sfsiegel »

The discussion of mem_model.1.c states "…at Print 1, the value of x could be either 2 or 5,…".
But, since the program has a data race, aren't the semantics completely unspecified?
Can you really conclude that x could be 2 or 5?

Locked