摘要
Goroutine是Go语言提出的轻量级线程,可应用于需要高并发的场景中。该文对Goroutine并发编程及其所涉及到的相关知识和编程基础进行了讨论,对其效率进行了对比和分析,并实现了社交网站服务端语言层面的应用。基于Beego的社交网站所涉及需要进行高并发编程的部分主要包括推送功能和数值计算,该文涉及了相应的应用。
Goroutine is a lightweight thread of Go language, which can be applied to the scene of high concurrency. In this paper,the Goroutine concurrent programming and its related knowledge and programming are discussed. The efficiency is compared and analyzed, and the application of the social web server is realized. Beego based social networking sites involved in the need for high concurrent programming part of the main including the push function and numerical calculation, this paper relates to the corresponding application.
出处
《电脑知识与技术》
2015年第11X期52-54,共3页
Computer Knowledge and Technology
基金
北京市教委"PXM2015_014224_000050
本科生培养-大学生科研训练(市级)"经费支持