Add a new OpenMP example

Use 'critical' directive to avoid data race.