摘要
文章主要讨论网页前端多线程技术,首先分析了传统多线程技术原理和应用场景,然后分析了HTML5规范中Web Worker的技术原理、产生的必要性和具体应用场景,通过对比分析得出了以下结论:网页前端的工作线程和传统的多线程本质上有很大差别,它更适合由于服务器或者客户端长时间计算导致网页前端处于阻塞状态的工作场景。
This paper mainly discusses the front-end web multi thread technology, in this paper begins with an analysis of the traditional multi threading technology principle and application scenarios, and then analyzes the HTML5 specification of web worker technical principle, produce the necessity and specific application scenarios, through comparative analysis, we can draw the following conclusions: front-end web worker threads and traditional multithreaded nature is very different, it is more suitable for due to the server or client long time calculation leads to a web front-end in the blocking state of the scene.
出处
《无线互联科技》
2015年第11期45-46,共2页
Wireless Internet Technology
基金
内蒙古商贸职业学院2013年度青年课题
项目名称:高职学生就业服务门户系统的应用研究
项目编号:2013