开发者

Is there any concurrency package for C-language?

I know Java and C# both have library package to support concurrency programming. Does anyone know whethe开发者_如何学运维r or not there is library package for C? Thanks


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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜