Created
May 9, 2016 04:21
-
-
Save yohm/da0d5fb953b54c9e6c2cfbdc58af4560 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import x10.io.Console; | |
import x10.util.Timer; | |
class ParallelHelloWorld { | |
public static def main(args:Rail[String]):void { | |
val timer = new Timer(); | |
val begin = timer.milliTime(); | |
finish for (p in Place.places()) { | |
async at (p) { | |
Console.OUT.println("Hello, I'm " + here); | |
} | |
} | |
Console.ERR.println( timer.milliTime() - begin ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment