首页 | 本学科首页   官方微博 | 高级检索  
     

Linux多线程的互斥与同步控制及实践
引用本文:刘俞.Linux多线程的互斥与同步控制及实践[J].安徽冶金科技职业学院学报,2005,15(2):53-57.
作者姓名:刘俞
作者单位:安徽工业大学职业技术学院,安徽马鞍山,243000
摘    要:随着计算机软硬件的发展,对计算机的执行效率的要求不断提高,多线程技术应运而生,现在已被许多操作系统所支持.介绍了多线程系统中互斥与同步机制,在Linux系统下利用信号量操作及利用pthread多线程函数编程实现多线程间的互斥与同步控制,并以生产者和消费者问题为例进行分析与实践.

关 键 词:线程  多线程  互斥  同步  互斥锁  信号量
文章编号:1672-9994(2005)02-0053-05
修稿时间:2005年4月5日

Mutex and Synchronization of Multithreading Program in Linux and Its Practice
LIU Yu.Mutex and Synchronization of Multithreading Program in Linux and Its Practice[J].Journal of Anhui Vocational College of Metallurgy and Technology,2005,15(2):53-57.
Authors:LIU Yu
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.
Keywords:threading  multithreading  mutex  synchronization  mutex lock  semaphore  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号