Gin
Gin

Reputation: 1763

Is there any concurrency package for C-language?

I know Java and C# both have library package to support concurrency programming. Does anyone know whether or not there is library package for C? Thanks

Upvotes: 1

Views: 2306

Answers (3)

Karmastan
Karmastan

Reputation: 5726

At the lowest level, you have pthreads, which give you threads, locks, condition variables, etc. It's about as basic as you can get. If your program uses a framework, it might provide its own threading primitives so you don't have to use pthreads directly.

  1. Qt Threading Support
  2. Glib threads (used by GTK)
  3. Boost threads (for C++)

Other packages provide higher-level concurrency operations that may be easier to reason about.

  1. Intel Threading Building Blocks
  2. OpenMP
  3. MPI
  4. QtConcurrent

Upvotes: 4

ismail
ismail

Reputation: 47672

There is OpenMP which is supported by compilers like icc, msvc and gcc (at least).

Upvotes: 1

Vi.
Vi.

Reputation: 38762

  1. Qt QThread
  2. pthread
  3. MPI (for computations on multiple computers)
  4. (more)

Upvotes: 4

Related Questions