Hello

I wrote two programs:

1. A program where I issue  "async doWork()" inside a for loop. I run this
with X10_NTHREADS=2
2. A program where I issue  "async at(kk) doWork()" inside a for loop. I
run this program with X10_NPLACES=2.

The doWork() function (called worker) is such that different workers have
to communicate.  For this, I use an array in the class.

In case 1, it was easy, since a single copy of array is created and both
workers can read from it.

In case 2, I think, the array is copied to another place also; so both
workers end up doing all the works.

Can you suggest, how can I alleviate this problem? Specifically, how to
enable communication between different places. Thanks a lot for your help.



Thanks and Regards
Sparsh Mittal
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to