Changes

Jump to: navigation, search

GPU621/Chapel

51 bytes added, 08:45, 30 November 2022
Task Parallelism
*The begin statement spawns a thread of execution that is independent of the current (main) thread of execution.
writeln("1: ### The begin statement ###");
begin writeln("1: output from spawned task");
 
*The cobegin statement can be used to spawn a block of tasks, one for each statement.
writeln("2: ### The cobegin statement ###");
73
edits

Navigation menu