I wanted to seek answer to the above question and would be grateful if you
could answer or point me to a suitable reference. The essence of question
is how to have shared data b/w different places. Thanks.

Thanks and Regards
Sparsh Mittal



On Tue, Feb 19, 2013 at 4:44 PM, Sparsh Mittal <sparsh0mit...@gmail.com>wrote:

> 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