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

基于信号量的Linux多线程同步研究
引用本文:王杨,朱朝霞. 基于信号量的Linux多线程同步研究[J]. 计算机与数字工程, 2004, 32(4): 3-5
作者姓名:王杨  朱朝霞
作者单位:西华师范大学计算机科学系,南充,637002;安徽师范大学计算机科学系,芜湖,241000;西华师范大学计算机科学系,南充,637002
摘    要:信号量是进程或线程之间相互通讯的手段之一。有效地使用可以在多线程之间实现同步和互斥,以保证程序的正确的运行。在对线程的数据结构和相关的10个函数分析的基础上,以一个具体的例子给出如何使用信号量机制实现多线程之间的同步。

关 键 词:Linux  多线程  信号量  同步
修稿时间:2003-12-01

Research on Linux Multithread Synchronization Based on Semaphore
Wang Yang , Zhu Zhaoxia. Research on Linux Multithread Synchronization Based on Semaphore[J]. Computer and Digital Engineering, 2004, 32(4): 3-5
Authors:Wang Yang    Zhu Zhaoxia
Affiliation:Wang Yang 1,2 Zhu Zhaoxia1
Abstract:The semaphore is an important communication method between the processes or threads.Its effective usage can achieve multithread synchronization and mutex to ensure program running correctly.On the base of analysis about the data structure of threads and relevant 10 functions,the paper uses a specific example to point out how to achieve the multithread synchronization by the semaphore mechanism.
Keywords:Linux  multithread  semaphore  synchronization
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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