Content deleted Content added
Line 32:
X10 uses the concept of parent and child relationships for activities to prevent the lock stalemate that can occur when two or more processes wait for each other to finish before they can complete. An activity may spawn one or more child activities, which may themselves have children. Children cannot wait for a parent to finish, but a parent can wait for a child using the ''finish'' command.<ref>{{cite journal | last = Biever | first = C. | title = Computer revolution poses problems for programmers | journal = New Scientist | volume = 193 | issue = 2594 }}</ref>
==Example code==
===[[Hello, World!]]===
{{sxhl|2=x10|1=
/** Example file for the X10 programming langauge (http://x10-lang.org).
Line 38 ⟶ 39:
class Example {
public static def main(Rail[String]) {
Console.OUT.println("Hello, World!"); // say hello.
}
}
|