introduction to OpenMP - threads

We use the compilers at copper to write OpenMP programs. Our programs are based on threads, i.e.: they run on a single processor, using no more than 64 threads (limit set by copper). We discussed three programs:
  1. hello_world.c shows the execution of a parallel section and the facilities for a manager/worker programming model.
  2. We used prime_tester.c to illustrate the dynamic creation of threads (here we ran into the limit of 64 threads).
  3. Our last program pow3.c is an example of a parallelizing loop, indicated by a parallel for directive.