針對并發(fā)錯誤的異常處理機(jī)制的設(shè)計與實(shí)現(xiàn)
[Abstract]:With the wide application of multi-core processors, the research of concurrency technology in program design has been greatly promoted. Because of the non-deterministic nature of concurrent programs, it is very difficult to detect and handle concurrent errors, so the correctness of concurrent programs can hardly be guaranteed. Preventing concurrent errors from occurring at row-time is an important task. In the past few decades, a lot of research has been done on the fault-tolerant mechanism of concurrent programs. Software transactional memory mechanism [1] is simpler for locks (no locks are required to guarantee atomicity) and more efficient for implementation. Software transactional memory can provide fault-tolerant support for atomicity, but this fault-tolerant support also depends on the atomic block declared by the programmer: when the atomic block declared by the programmer is not available To ensure the correctness of concurrent programs, it is still necessary to analyze and test them. Current research work can not detect all kinds of errors in concurrent programs and deal with them in the process of program running to prevent serious consequences caused by program errors.
Considering the types of common errors in concurrent programs, this paper proposes a fault tolerance mechanism for common errors in concurrent programs. By treating concurrent errors as exceptions such as divisor zero, the program can implement fault tolerance based on rollback after exceptions occur. At present, there is no related research work to deal with concurrent errors as program exceptions, so as to extend the exception handling mechanism of programs. The innovation of this paper is mainly reflected in the following aspects:
(1) static analysis and instrumentation of programs: identification of threads by static analysis of programs.
A common variable is code insertion for read and write operations of public variables.
(2) Program dynamic analysis: It is mainly reflected in the dynamic detection of concurrent program errors, by recording the sequence of common variables read and write between threads during the running process of the program, and then matching the error patterns of atomic violations to find concurrent errors. The idea of this algorithm makes the runtime cost very low, compared with the current related research work of the algorithm storage. It has great advantages.
(3) Exception handling mechanism: The idea of taking concurrent errors as exception handling is pioneered in related research work, and provides a different way from the previous concurrent error handling, allowing programmers to customize exception handling methods according to the obtained exception information, improving the fault tolerance performance of the program, and improving the flexibility of handling concurrent errors.
【學(xué)位授予單位】:上海交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP332
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 李瑩;;Java異常處理與設(shè)計原則[J];科技廣場;2007年09期
2 顧慶傳;孔浩;謝樹云;;Java異常處理的分析與研究[J];科技信息;2010年18期
3 魏曉玲;楊戰(zhàn)海;;JAVA語言的異常處理機(jī)制[J];科技信息;2009年02期
4 周昕;尹芳;;Java語言的異常處理機(jī)制研究[J];計算機(jī)與信息技術(shù);2010年Z1期
5 柯化成;;軟件開發(fā)“善守”之道——談監(jiān)錯/防錯設(shè)計和異常處理機(jī)制[J];程序員;2004年05期
6 艾鈞華,鄧輝;Java語言的異常處理機(jī)制[J];湘潭師范學(xué)院學(xué)報(自然科學(xué)版);2005年02期
7 吳金秀;;Java語言中異常的研究[J];軟件導(dǎo)刊;2008年09期
8 吳云峰,薛錦云,楊慶紅;Ada異常處理機(jī)制在容錯可重用部件中的應(yīng)用[J];計算機(jī)與數(shù)字工程;1995年06期
9 李永麗;王萍;陳思國;關(guān)偉洲;趙宇;李勇;;基于工作流可預(yù)測異常處理框架的設(shè)計與實(shí)現(xiàn)[J];吉林大學(xué)學(xué)報(理學(xué)版);2007年06期
10 岑心;;Delphi篇[J];中文信息;2003年11期
相關(guān)重要報紙文章 前8條
1 遼寧 李旭東;你依然是你[N];中國電腦教育報;2001年
2 杜思夢;電影資金辦“新平臺”研發(fā)又邁一大步[N];中國電影報;2011年
3 Warton;Java的異常處理[N];電腦報;2004年
4 汪洋;BPEL加速業(yè)務(wù)流程集成[N];計算機(jī)世界;2004年
5 記者 李松 黃潔 實(shí)習(xí)生 徐偉倫;堅稱依法行事首發(fā)不退費(fèi)[N];法制日報;2010年
6 記者 劉可 通訊員 雪潔;高速收費(fèi)再起爭端 首發(fā)集團(tuán)又成被告[N];北京日報;2010年
7 記者 李波 通訊員 雪潔;法庭焦點(diǎn):舉證責(zé)任是關(guān)鍵[N];北京社區(qū)報;2010年
8 記者 劉革 通訊員 吳騰彪 李智;退稅驟增及時緩解企業(yè)資金壓力[N];岳陽晚報;2011年
相關(guān)博士學(xué)位論文 前2條
1 王志;二進(jìn)制代碼路徑混淆技術(shù)研究[D];南開大學(xué);2012年
2 劉銘;列車通信網(wǎng)絡(luò)系統(tǒng)形式化建模與驗(yàn)證方法研究[D];哈爾濱工程大學(xué);2011年
相關(guān)碩士學(xué)位論文 前10條
1 牛如美;針對并發(fā)錯誤的異常處理機(jī)制的設(shè)計與實(shí)現(xiàn)[D];上海交通大學(xué);2012年
2 苗俊;Web服務(wù)組合中基于有向圖的事務(wù)異常處理機(jī)制研究[D];遼寧大學(xué);2011年
3 楊法強(qiáng);一種智能流程異常處理機(jī)制研究[D];山東大學(xué);2006年
4 張家陽;Web平臺工作流異常處理機(jī)制研究[D];合肥工業(yè)大學(xué);2009年
5 耿耀君;Java程序中異常流的測試與可視化研究[D];西安電子科技大學(xué);2008年
6 賴耀東;基于多Agent虛擬組織工作流管理系統(tǒng)的異常處理機(jī)制[D];浙江大學(xué);2002年
7 郁生陽;基于VxWorks的智能機(jī)器人軟件系統(tǒng)支撐平臺的研究與實(shí)現(xiàn)[D];南京理工大學(xué);2005年
8 董宏亮;數(shù)字有機(jī)體數(shù)據(jù)庫異常處理機(jī)制的研究與實(shí)現(xiàn)[D];電子科技大學(xué);2009年
9 李康;深海海底邊界層原位監(jiān)測中控制系統(tǒng)的設(shè)計與實(shí)現(xiàn)[D];中國海洋大學(xué);2012年
10 呂秀瓊;成都市檢察機(jī)關(guān)偵查指揮管理系統(tǒng)研發(fā)與實(shí)現(xiàn)[D];電子科技大學(xué);2012年
,本文編號:2234313
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2234313.html