Executing the schedule returns the number of true (non-zero) elements of the array. The result value, written to *res, is broadcast to all members of the active process group.