1
edit
Changes
→How to parallelize your code using Chapel Cray
writeln("Thread #", i,"of ", n);
</pre>
* Sample Parallel Code Output using '''coforall'''
[[Image:coforall.PNG|Output Example]]
* '''begin''': Each begin statement will create a different thread.
* Sample Parallel Code Output using '''begin'''
[[Image:begin.PNG|Output Example]]
* '''cobegin''': the each statement in cobegin block will be parallelized.