arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1511.03213cs.PL
收藏

事件驱动多线程程序的一种偏序约简技术

A Partial Order Reduction Technique for Event-driven Multi-threaded Programs

Pallavi Maiya, Rahul Gupta, Aditya Kanade, Rupak Majumdar

摘要:

事件驱动的多线程编程正在迅速成为开发高效和响应式应用程序的首选风格。在这种并发模型中,多个线程并发执行,通过共享对象进行通信,并发布按到达顺序执行的异步事件。在这项工作中,我们考虑事件驱动的多线程程序的部分降阶(POR)。现有的POR技术将与线程相关联的事件队列视为共享对象,从而对同一线程上处理的每对事件进行重新排序,即使重新排序它们不会导致不同的状态。我们不把事件队列作为共享对象,并提出了一种新的POR技术的基础上一种新的回溯集称为依赖覆盖集。由同一线程处理的事件仅在必要时才由POR技术重新排序。我们证明,探索依赖覆盖集足以检测所有的死锁周期和断言违反定义的局部变量。为了评估我们的POR方案的有效性,我们实现了一个动态算法来计算依赖覆盖集。从几个Android应用程序的执行轨迹,我们证明了我们的技术探索少得多的过渡-往往数量级少-相比,探索基于持久集,其中,事件队列被认为是共享对象。

英文摘要:

Event-driven multi-threaded programming is fast becoming a preferred style of developing efficient and responsive applications. In this concurrency model, multiple threads execute concurrently, communicating through shared objects as well as by posting asynchronous events that are executed in their order of arrival. In this work, we consider partial order reduction (POR) for event-driven multi-threaded programs. The existing POR techniques treat event queues associated with threads as shared objects and thereby, reorder every pair of events handled on the same thread even if reordering them does not lead to different states. We do not treat event queues as shared objects and propose a new POR technique based on a novel backtracking set called the dependence-covering set. Events handled by the same thread are reordered by our POR technique only if necessary. We prove that exploring dependence-covering sets suffices to detect all deadlock cycles and assertion violations defined over local variables. To evaluate effectiveness of our POR scheme, we have implemented a dynamic algorithm to compute dependence-covering sets. On execution traces obtained from a few Android applications, we demonstrate that our technique explores many fewer transitions ---often orders of magnitude fewer--- compared to exploration based on persistent sets, wherein, event queues are considered as shared objects.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑