...
Noncompliant Code Example
The Java programming language allows threads to access shared variables. In this noncompliant code example, if one thread repeatedly calls the method one()
, and another thread repeatedly calls the method two()
, then method two()
could occasionally print a value of i
that is neither zero nor the value of the argument j
.
...