天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 科技論文 > 計算機(jī)論文 >

針對并發(fā)錯誤的異常處理機(jī)制的設(shè)計與實(shí)現(xiàn)

發(fā)布時間:2018-09-10 11:32
【摘要】:隨著多核處理器的廣泛應(yīng)用,程序設(shè)計中并發(fā)技術(shù)的研究受到了極大的推動。由于并發(fā)程序本身的非確定性性質(zhì),檢測、處理并發(fā)錯誤非常困難,所以并發(fā)程序的正確性很難得到良好的保證。一般來說在編譯時檢測并發(fā)錯誤并在程序運(yùn)行時防止并發(fā)錯誤的發(fā)生是一項(xiàng)很重要的工作。在過去的幾十年間,對于并發(fā)程序的容錯機(jī)制已經(jīng)有大量的研究工作。特別是相對于鎖的性能和復(fù)雜性,相關(guān)的研究者提出了在軟件和硬件機(jī)制上通過事務(wù)機(jī)制實(shí)現(xiàn)同步從而實(shí)現(xiàn)容錯。相對于鎖而言,軟件事務(wù)內(nèi)存機(jī)制[1]比較簡單(不用通過鎖來保證原子性),而且實(shí)現(xiàn)上更高效。對于原子性而言,軟件事務(wù)內(nèi)存能夠?qū)ζ涮峁┤蒎e支持,然而,這一容錯支持同樣依賴于程序員所聲明的原子塊:當(dāng)程序員所聲明的原子塊無法保證并發(fā)程序的正確性時,依然需要分析、測試等手段對其進(jìn)行檢測。目前的研究工作還不能很好的檢測并發(fā)程序中的各種錯誤并在程序運(yùn)行過程中處理它們,防止由于程序出錯所帶來的嚴(yán)重后果。 考慮到并發(fā)程序中常見錯誤的類型,本文提出了針對并發(fā)程序中常見錯誤的容錯機(jī)制,通過將并發(fā)錯誤作為如除數(shù)為零一樣的異常來處理,使得程序在發(fā)生異常之后可以采用基于回滾的方式實(shí)現(xiàn)容錯。該課題的目的在于提供針對并發(fā)錯誤的異常處理的設(shè)計框架,并在Java語言上進(jìn)行實(shí)現(xiàn),提高程序的容錯性能。當(dāng)前還沒有相關(guān)的研究工作將并發(fā)錯誤作為程序異常來處理,從而擴(kuò)展程序的異常處理機(jī)制,本文課題在研究工作中的創(chuàng)新點(diǎn)主要體現(xiàn)在以下幾個方面: (1)程序的靜態(tài)分析及插裝:通過對程序的靜態(tài)分析識別出線程 間公共變量,對公共變量的讀寫操作進(jìn)行代碼插裝; (2)程序動態(tài)分析:主要體現(xiàn)在動態(tài)檢測并發(fā)程序錯誤上,通過記錄程序運(yùn)行過程中線程間公共變量讀寫的序列,然后匹配原子性違例的錯誤模式來發(fā)現(xiàn)并發(fā)錯誤,這一算法思想使得在運(yùn)行時開銷上很低,相比當(dāng)前相關(guān)研究工作的算法存在很大優(yōu)勢; (3)異常處理機(jī)制:把并發(fā)錯誤作為異常處理的想法在相關(guān)研究工作中是首創(chuàng)的,并提供了異于以往并發(fā)錯誤處理的方式,允許程序員根據(jù)得到的異常信息自定義異常處理方式,提高了程序的容錯性能,也提高了處理并發(fā)錯誤的靈活性。
[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

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2234313.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶e5030***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com