任何人都可以在C中为线程同步提供一个简单的多线程程序 [英] can anyone give a simple multithreaded program in C for thread synchronization
本文介绍了任何人都可以在C中为线程同步提供一个简单的多线程程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我很容易学习你的答案
MAKE ME EASY TO LEARN WITH YOUR ANSWER
推荐答案
当使用合适的关键词如线程同步pthread时,网上有很多例子可以找到。
请参阅 http://上的线程同步部分www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html [ ^ ]。
另一个好的 pthread 教程是https://computing.llnl.gov/tutorials/pthreads/ [ ^ ]。
There are lot of examples in the web that can be found when using suitable key words like "thread synchronization pthread".
See the section Thread Synchronization at http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html[^].
Another good pthread tutorial is https://computing.llnl.gov/tutorials/pthreads/[^].
这篇关于任何人都可以在C中为线程同步提供一个简单的多线程程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文