基于锁信息的多线程软件原子性错误检测方法  被引量:1

ATOMICITY VIOLATIONS DETECTION METHOD FOR MULTI-THREADED SOFTWARE BASED ON LOCK INFORMATION

在线阅读下载全文

作  者:王云飞[1] 刘剑[1] 马越[1] 

机构地区:[1]中国科学院软件研究所,北京100190

出  处:《计算机应用与软件》2014年第6期1-4,94,共5页Computer Applications and Software

基  金:核高基项目(2012ZX01039-004);中国科学院知识创新工程项目(KGCX2-YW-125)

摘  要:原子性错误是多线程软件开发中常见的并发错误之一。传统的静态分析方法存在误报的可能,动态方法由于利用的信息过少而存在运行效率低下的问题。针对以上问题,设计以动态方法为基础通过计算锁信息,根据锁信息判断是否可能发生原子性错误的方法,据此减少程序的回溯次数和运行时间。通过对一系列开源程序的测试,实验数据证明此方法可以大大提高原子性错误检测的效率。Atomicity violation is one of common concurrency bugs in multi-threaded software development. Traditional static analysis means has the possibility of false alarm, and the dynamic means has the problem of low running efficiency due to too little information to be used. In light of the above problems, we design a new algorithm, it is based on dynamic method, and discriminates by calculating the lock information and according to this information whether or not the atomicity violations would possibly occur, and reduce the backtracking numbers and running times of the program based on it. Through the tests on a series of open source programs, the experimental data proves that this method can greatly improve the efficiency of atomicity violation detection.

关 键 词:多线程软件 原子性错误 锁信息 模型检测 动态优化 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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