Loop n times
{
     // asynchronous (nonblocking) operations
     spawn child task;
     send message to child;
}
Loop n times
{
     // synchronous (blocking) operations
     receive result from child;    
}

Example 2: Parallel algorithm for parent task.

Back to Article