Introduction to OpenMP

OpenMP is an open source library which is used for multi-threaded parallel processing and shared-memory multi-processor (core) computers. In OpenMP, part of program is a single thread and part is multi-threaded.

OpenMP has 3 components:

  • directives that can be put into C/C++ or Fortran programs
  • runtime library for setting and querying parallel parameters (number of threads)
  • environment variables that define runtime parallel parameters (number of threads)


Read the full article for the advantages, disadvantages and approaches of OpenMP
This is a companion discussion topic for the original entry at http://iq.opengenus.org/openmp-introduction/