Reputation: 1763
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
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.
Other packages provide higher-level concurrency operations that may be easier to reason about.
Upvotes: 4
Reputation: 47672
There is OpenMP
which is supported by compilers like icc
, msvc
and gcc
(at least).
Upvotes: 1
Reputation: 38762
Upvotes: 4