Loop body containing only an active lambda is parallel:
•Loop control statement is evaluated on
the master thread.
•Master dynamically assigns loop
iterations to team threads.
•Number of threads actually used is
tuned to local hardware.
• for( init;
condition; incr ) active {
// this code is executed across the
team
}
• for each( Type t in collection ) active {
// this code is executed across the
team
}
• while( condition ) active {
// this code is executed across the
team
}
• do active {
// this code is executed across the
team
} while( condition );