节点文献
Linux多线程的互斥与同步控制及实践
Mutex and Synchronization of Multithreading Program in Linux and Its Practice
【摘要】 随着计算机软硬件的发展,对计算机的执行效率的要求不断提高,多线程技术应运而生,现在已被许多操作系统所支持。介绍了多线程系统中互斥与同步机制,在Linux系统下利用信号量操作及利用pthread多线程函数编程实现多线程间的互斥与同步控制,并以生产者和消费者问题为例进行分析与实践。
【Abstract】 With the development of the hardware and software of computer, the need for performing efficient is enhancing rapidly. So the technology of multithreading is in use which is supported by lots of operating systems. It mainly introduces mutex and synchronization mechanism in multithreading system, and the usage of semaphore operation and the implement mutex and synchronization control between the multithreading using pthread multithreading function programme, to analyse and practice it with the example of the problems of producers and consumers.
【关键词】 线程;
多线程;
互斥;
同步;
互斥锁;
信号量;
【Key words】 threading; multithreading; mutex; synchronization; mutex lock; semaphore;
【Key words】 threading; multithreading; mutex; synchronization; mutex lock; semaphore;
- 【文献出处】 安徽冶金科技职业学院学报 , 编辑部邮箱 ,2005年02期
- 【分类号】TP316
- 【被引频次】19
- 【下载频次】310