C: Multithreading

前端 未结 5 2579
孤街浪徒
孤街浪徒 2020-12-09 22:04

Is multithreading supported in C? If yes, then how do I try? Is there any open source library that lets me do it and is the library supported on Mac OS X?

I haven\'

5条回答
  •  鱼传尺愫
    2020-12-09 22:36

    C has no concept whatever of threads. There is no thread support in C Standard. There are extensions available that can implement multi threading - one of which is pthreads.

    Be aware because C language has no natural support of threads you as the programmer have to take care of everything and you will not be protected against any of the pitfalls of multi-threaded programming.

提交回复
热议问题