C:多线程 [英] C: Multithreading
问题描述
时的多线程用C支持?如果是的话,那我怎么试?是否有任何开源库,可以让我这样做,是支持Mac OS X的图书馆吗?
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't found any article saying that it's supported.
推荐答案
C是没有本质上的多线程语言;但也有它添加线程功能许多图书馆。
C is not intrinsically a multithreaded language; however there are many libraries which add threading functionality.
-
的pthreads
与任何POSIX系统兼容的库中,所以它支持OSX。我发现<一个href=\"https://computing.llnl.gov/tutorials/pthreads/\">https://computing.llnl.gov/tutorials/pthreads/是开始的好地方。
pthreads
is a library compatible with any POSIX system, so it is supported on OSX. I found https://computing.llnl.gov/tutorials/pthreads/ to be a good place to start.
Win32的具有对C一个线程库在<一个描述href=\"http://msdn.microsoft.com/en-us/library/y6h8hye8(v=vs.80).aspx\">http://msdn.microsoft.com/en-us/library/y6h8hye8(v=vs.80).aspx.
Win32 has a threading library for C described at http://msdn.microsoft.com/en-us/library/y6h8hye8(v=vs.80).aspx.
油嘴
补充穿线支持,并且有被完全跨平台的,只要能说会道安装在目标机器上的优势。这里有一些信息:<一href=\"http://developer.gnome.org/glib/2.28/glib-Threads.html\">http://developer.gnome.org/glib/2.28/glib-Threads.html
Glib
adds threading supported, and has the advantage of being completely cross-platform, as long as glib is installed on the target machine. There is some information here: http://developer.gnome.org/glib/2.28/glib-Threads.html
这篇关于C:多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!