Oracle® Solaris Studio 12.4: Thread Analyzer User's Guide

Exit Print View

Updated: December 2014
 
 

Data Race Tutorial Source Files

    This tutorial relies on two programs, both of which contain data races:

  • The first program finds prime numbers. It is written with C and is parallelized with OpenMP directives. The source file is called prime_omp.c.

  • The second program also finds prime numbers and is also written with C. However, it is parallelized with POSIX threads instead of OpenMP directives. The source file is called prime_pthr.c.