Scrider:使用单一临界区来避免死锁

Yu Zhen, Su Xiaohong, Ma Peijun
{"title":"Scrider:使用单一临界区来避免死锁","authors":"Yu Zhen, Su Xiaohong, Ma Peijun","doi":"10.1109/IMCCC.2014.213","DOIUrl":null,"url":null,"abstract":"We propose a method, called Scrider, to avoid dead-locks before they manifest themselves. When running it together with a multithreaded program, Scrider interferes in thread scheduling to ensure that at any time there is only one thread in the critical state. By this way, Scrider can avoid any dead-lock involving two or more threads. For a self-deadlock that involves only one thread, Scrider captures it as soon as it happens and spits out enough information to support source-level debugging. Scrider is designed to avoid deadlocks caused by mutual exclusive locks or read/write locks in Pthread interface. Scrider is implemented as a pre-loadable library and doesn't require either modifying the source code or recompiling/relinking the target program, so that Scrider can be used directly to avoid deadlocks in current applications. Experiment results with nine benchmarks show that Scrider wokrs well in avoiding deadlocks caused by mutual exclusive locks and read/write locks.","PeriodicalId":152074,"journal":{"name":"2014 Fourth International Conference on Instrumentation and Measurement, Computer, Communication and Control","volume":"27 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2014-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Scrider: Using Single Critical Sections to Avoid Deadlocks\",\"authors\":\"Yu Zhen, Su Xiaohong, Ma Peijun\",\"doi\":\"10.1109/IMCCC.2014.213\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We propose a method, called Scrider, to avoid dead-locks before they manifest themselves. When running it together with a multithreaded program, Scrider interferes in thread scheduling to ensure that at any time there is only one thread in the critical state. By this way, Scrider can avoid any dead-lock involving two or more threads. For a self-deadlock that involves only one thread, Scrider captures it as soon as it happens and spits out enough information to support source-level debugging. Scrider is designed to avoid deadlocks caused by mutual exclusive locks or read/write locks in Pthread interface. Scrider is implemented as a pre-loadable library and doesn't require either modifying the source code or recompiling/relinking the target program, so that Scrider can be used directly to avoid deadlocks in current applications. Experiment results with nine benchmarks show that Scrider wokrs well in avoiding deadlocks caused by mutual exclusive locks and read/write locks.\",\"PeriodicalId\":152074,\"journal\":{\"name\":\"2014 Fourth International Conference on Instrumentation and Measurement, Computer, Communication and Control\",\"volume\":\"27 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2014-09-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2014 Fourth International Conference on Instrumentation and Measurement, Computer, Communication and Control\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/IMCCC.2014.213\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2014 Fourth International Conference on Instrumentation and Measurement, Computer, Communication and Control","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IMCCC.2014.213","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

我们提出了一种叫做Scrider的方法,在死锁出现之前避免它们。当它与多线程程序一起运行时,Scrider会干预线程调度,以确保在任何时候都只有一个线程处于临界状态。通过这种方式,Scrider可以避免涉及两个或更多线程的死锁。对于只涉及一个线程的自死锁,Scrider会在发生死锁时立即捕获它,并提供足够的信息来支持源代码级调试。Scrider的设计是为了避免Pthread接口中互斥锁或读/写锁引起的死锁。Scrider被实现为一个可预加载的库,不需要修改源代码或重新编译/重新链接目标程序,因此可以直接使用Scrider来避免当前应用程序中的死锁。9个基准测试的实验结果表明,Scrider可以很好地避免互斥锁和读/写锁造成的死锁。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Scrider: Using Single Critical Sections to Avoid Deadlocks
We propose a method, called Scrider, to avoid dead-locks before they manifest themselves. When running it together with a multithreaded program, Scrider interferes in thread scheduling to ensure that at any time there is only one thread in the critical state. By this way, Scrider can avoid any dead-lock involving two or more threads. For a self-deadlock that involves only one thread, Scrider captures it as soon as it happens and spits out enough information to support source-level debugging. Scrider is designed to avoid deadlocks caused by mutual exclusive locks or read/write locks in Pthread interface. Scrider is implemented as a pre-loadable library and doesn't require either modifying the source code or recompiling/relinking the target program, so that Scrider can be used directly to avoid deadlocks in current applications. Experiment results with nine benchmarks show that Scrider wokrs well in avoiding deadlocks caused by mutual exclusive locks and read/write locks.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信