江汉大学学报(自然科学版) ›› 2015, Vol. 43 ›› Issue (2): 170-176.

• 计算机科学 • 上一篇    下一篇

基于Node.js的JavaScript并发控制流框架

李轶   

  1. 江汉大学数学与计算机科学学院,湖北武汉430056
  • 出版日期:2015-04-28 发布日期:2015-05-05
  • 作者简介:李轶(1976—),男,实验员,硕士,研究方向:网络管理。

JavaScript Concurrent Flow-Control Framework Based on Node.js

LI Yi   

  1. School of Mathematics and Computer Science,Jianghan University,Wuhan 430056,Hubei,China
  • Online:2015-04-28 Published:2015-05-05

摘要: Node.js 因其异步I/O的特性,非常适合于服务器端的JavaScript 开发。然而为实现此环境下异步I/O的并发控制,开发者不得不手工编写繁琐的代码,因而给开发者造成了障碍。以并发计数器为基础,可以设计一个并发控制流框架。该框架以直观的调用形式,实现了异步I/O 间的并发控制;其不仅有助于Node.js 环境下的JavaScript开发,更提高了开发者的开发效率。

关键词: 异步I/O, 并发, 同步, 并发计数器, JavaScript

Abstract: Because of the asynchronous characteristic of I/O,Node.js is quite suitable for developing server-side JavaScript applications. To implement concurrent asynchronous I/O control,developers have to write tedious code manually,it becomes a barrier to developers. Based on the concurrent counter,a concurrent flow- control framework can be constructed. The framework achieved concurrent control between multiple asynchronous I/O in a direct viewing way. Thus,it benefits server- side JavaScript developments and also promotes the efficiency of development.

Key words: asynchronous I/O, concurrency, synchronization, concurrent counter, JavaScript

中图分类号: