blob: 367221c92d3ac56214cfe83f801cb2fa5ff7e55e [file] [log] [blame]
<h2><code>MYTHREAD</code> keyword</h2>
<h4>Description</h4>
<p>
<code>MYTHREAD</code> is an expression with a value of type int; it specifies the unique
thread index.
<br>The range of possible values is <code>0..THREADS-16</code>.
<h4>Example</h4>
<p>The following program prints the numbers 0
through <code>THREADS-1</code>, in some order.
<pre>
#include &lt;upc.h&gt;
main(){
printf("%d ",MYTHREAD);
}
</pre>
<p>See also <a href="id_THREADS.html"><code>THREADS</code></a>,
<p>&nbsp
<p>&nbsp
<p><a href="terms.html">Terms, definitions, and symbols</a><br>
<p><a href="index.html">Back to index of all UPC functions</a>