| <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 <upc.h> |
| main(){ |
| printf("%d ",MYTHREAD); |
| } |
| </pre> |
| <p>See also <a href="id_THREADS.html"><code>THREADS</code></a>, |
| |
| <p>  |
| <p>  |
| <p><a href="terms.html">Terms, definitions, and symbols</a><br> |
| <p><a href="index.html">Back to index of all UPC functions</a> |