利用Linux互斥锁解决生产者——消费者问题  被引量:2

Using Linux Mutex Mechanism to Solve Producer-consumer Problem

在线阅读下载全文

作  者:赵颢凯 柴玉梅 ZHANG Hao-kai;CHAI Yu-mei(School of Computer and Software Engineering,University of Science and Technology Liaoning,Anshan 114051,China)

机构地区:[1]辽宁科技大学计算机与软件工程学院,辽宁鞍山114000

出  处:《电脑知识与技术》2021年第36期132-134,147,共4页Computer Knowledge and Technology

摘  要:在计算机操作系统的学习过程中,生产者—消费者问题向来是难点。结合Linux系统提供的互斥锁机制,编写C语言程序实现生产者—消费者问题,并对运行结果进行了详细分析,旨在帮助学习者更好地理解该问题,为掌握其他进程同步与互斥问题奠定基础。In the process of learning computer operating system, the producer-consumer problem has always been difficult. Based on the mutex mechanism provided by Linux, a C program is written to solve the problem.And the results are analyzed in detail to help learners better understand the problem and lay foundation for mastering other process synchronization and mutex problems.

关 键 词:生产者—消费者问题 进程同步 LINUX 互斥锁 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象