<h2><code><code>shared</code></code> keyword</h2> | |
<h4>Description</h4> | |
<p> | |
<code>shared</code> indicates a variable is shared between threads. | |
<p> | |
<pre> | |
shared int i; | |
shared [2] int a[200]; | |
strict shared int i; | |
</pre> | |
<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> |