Ajax应用中的竞态条件  

Study on Race Condition in Ajax-based Web Application

在线阅读下载全文

作  者:陈丰[1] 黄贤英[1] 

机构地区:[1]重庆理工大学计算机科学与工程学院,重庆400050

出  处:《重庆工学院学报(自然科学版)》2009年第12期87-92,共6页Journal of Chongqing Institute of Technology

基  金:重庆市自然科学基金资助项目(CSTC2009AC2068)

摘  要:在Web应用程序中,由于Ajax技术的异步特性,当客户端同时产生多个请求时,这些请求将在服务器端异步运行.由于无法预测这些请求的执行次序,如果它们在同一时间试图修改同一个关键数据片段,就可能导致在服务器响应时发生竞态条件问题.针对这个问题,分析了产生竞态条件的原理,给出了实例,对可能导致的安全问题进行了研究.结果表明,提出的锁定机制可以有效地避免竞态条件的产生.This paper discusses the race condition occurring between the user requests and server responses due to the asynchronous nature of the Ajax-based Web application. A race condition occurs when multiple threads in a process try to modify the critical section data at the same time. Concurrent requests will be running asynchronously and it is impossible to predict which will run first. Also this paper analyses security problems caused by the race condition. At last, this paper discusses the locking mechanism, which is not a very effective way but may avoid race condition.

关 键 词:AJAX 竞态条件 并发 动态Web应用程序  

分 类 号:TP393.08[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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