Hello everyone, i'm new to x10.
I have a little problem about parallelization, here's my code:
public class Hello {
public static def main(args:Rail[String]) {
val hello = new Hello();
at (Place(1)) async hello.test();
at (Place(0)) async hello.test();
}
private def test() {
for(var i:Int=0n;i<100n;i++) {
Console.OUT.println("test,"+here);
}
}
I thought the output should not be the same if i run it several time.
But it was always the same:
Place(0)
Place(0)
...
Place(0)
Place(0)
Place(1)
Place(1)
...
Place(1)
Place(1)
Can anyone tell me is it so and what should i do to implement real
parallelization?
Thanks.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users