...
This page summarizes the Habanero-Java (HJ) language constructs used in COMP 322. For a summary of all HJ language constructs, see the HJ web page. Following standard conventions for defining programming language syntax, square brackets, [...], are used to denote optional clauses.
async [at (place)]
[ phased [(ph1<mode1>, ...)] ]
[ await (ddf1, ...) ]
[ seq (condition) ] Stmt
• Asynchronously start a new child task to execute Stmt
...
• Programmer inserts calls of the form, perf.addLocalOpsdoWork(Nn), in sequential codewithin tasks to denote n units of work
• HJ implementation computes total work and critical path length in units of programmer’s local opswork specified by the programmer’s calls to perf.doWork(n)