摘要
随着近年来云原生、微服务和分布式等技术的迅猛发展,高并发编程具有越来越广泛的市场需求和应用场景,受到国内外学者的广泛研究和重视。本文以并发编程为切入点,论述并对比了CSP(Communicating Sequential Process,通讯顺序进程)、Actor和协程三种并发编程模型的基本概念及其在编程语言中的具体实现,重点分析了各个模型的主要特点和实现细节。通过三种模型和进程、线程的比较,对比了各个编程模型的异同点。最后对并发编程的未来发展趋势进行了展望。
With the rapid development of cloud native,micro-service and distributed technologies in recent years,highly concurrent programming has more and more extensive market demands and application scenarios,and has been widely studied and valued by scholars at home and abroad.In this paper,the basic concepts of Communicating Sequential Process,Actor and coroutine concurrent programming models and their implementation in programming languages are described in detail.The main features and implementation details of each model are an⁃alyzed.Then the similarities and differences of each programming model are compared.Finally,the future development trend of concurrent programming is prospected.
作者
高永强
GAO Yongqiang(College of Information Engineering,Engineering University of PAP,Xi'an 710086)
出处
《现代计算机》
2021年第18期44-49,共6页
Modern Computer
关键词
并发编程
CSP模型
Actor模型
协程
Concurrent Programming
Communicating Sequential Process
Actor Model
Coroutine