Content deleted Content added
Ira Leviton (talk | contribs) Fixed a reference. Please see Category:CS1 errors: unsupported parameter. |
|||
Line 31:
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==
{{sxhl|2=x10|1=
/** Example file for the X10 programming langauge (http://x10-lang.org).
*/
class Example {
public static def main(Rail[String]) {
Console.OUT.println("Hello World!"); // say hello.
}
}
}}
==See also==
|