x06adc, for multithreaded implementations, returns the calling OpenMP thread's unique thread number within the current team. The master thread will always return
. The remaining threads will return a value between
and the value returned by
x06abc less
.
If this function is called from a sequential part of a multithreaded program then it will return the value .
In serial implementations of the
NAG Library this function will always return
. See the
X06 Chapter Introduction for a discussion of the behaviour of these functions when called in serial.
None.
None.
Not applicable.
Background information to multithreading can be found in the
Multithreading documentation.
None.
We also call
x06afc inside and outside of the region. Outside we expect it to return
, as we are not in an active parallel region, and inside we expect to see the value
, indicating that the parallel region is an active one.
If you use a serial implementation of the
NAG Library, regardless of whether the code is compiled with OpenMP or not,
x06abc will always return
and
x06adc and
x06afc will always return
. The appropriate results file will be included with the distribution material for your implementation.
None.