OpenMP Critical (critical section replaced by master-only execution)

Version's name: OpenMP Critical (critical section replaced by master-only execution) ; a version of the OpenMP Critical program.
Repository: [home] and version downloads: [.zip] [.tar.gz] [.tar.bz2] [.tar]
Patterns and behaviours: OpenMP critical section ·
Implemented best practices: Replace OpenMP critical section with master-only execution ·

This version of the code removes the OpenMP critical section and takes the block of code out of the OpenMP parallel region. The block of code then appears in the master-only region, thus adding some serial section of the code. However, this results in better performance much better speed-up than the original code that had the critical section.