Executing the schedule finds the largest element of the array for which the corresponding element of the mask array is non-zero. The maximum value, written to *res, is broadcast to all members of the active process group.