基于协程(goroutine)的并发编程模型及应用  被引量:2

Concurrency Programming Model and Application Based on Goroutine

在线阅读下载全文

作  者:王明松[1] 于营[1] 秦永佩 Wang Ming-song;Yu Ying;Qin yong-pei(University of Sanya,Hainan Sanya 572000)

机构地区:[1]三亚学院,海南三亚572000

出  处:《电子质量》2022年第6期95-98,共4页Electronics Quality

基  金:海南省自然科学基金青年基金项目(编号:621QN270);2019年海南省大学生创新创业训练计划项目(编号:S201913892081);海南省基础与应用基础研究计划(自然科学领域)高层次人才项目(编号:2019RC256)。

摘  要:随着大数据时代的到来,计算并发对整体系统的提升越发关键。Golang语言的并发功能将耗时任务以异步方式运行,适合多核处理器运行。Go语言使用goroutine机制实现并发编程。该文阐述了go语言的底层并发模型和机制,论述了协程编程的理论框架和通道通信的基本原理,并用具体实例阐述两者的基本关联和运行机制。Computing concurrency is becoming more and more critical to the improvement of the overall system with the advent of the era of big data.The concurrency function of golang runs time-consuming tasks asynchro nously,which is suitable for multi-core processors.This paper expounds the concurrency model of go language,discusses the theoretical framework of golang programming and the basic principles of channel communication,and expounds the basic relationship and operation of the ones with specific examples.

关 键 词:golang语言 计算并发 通道 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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