为事件驱动的多线程程序定制无状态模型检测
Tailoring Stateless Model Checking for Event-Driven Multi-Threaded Programs
AI总结:
针对事件驱动多线程程序,提出Event-DPOR算法,通过扩展Optimal-DPOR并采用高效冗余检查,指数级提升SMC验证效率并避免不必要探索。
摘要:
事件驱动的多线程编程是构建并发计算的重要范式。无状态模型检测(SMC)是一种有效的多线程程序验证技术,特别是与动态偏序约简(DPOR)结合使用时。现有的SMC技术在处理事件驱动程序时通常效果不佳,因为它们通常会探索事件处理的所有可能顺序,即使事件之间并不冲突。我们提出了Event-DPOR,一种为事件驱动的多线程程序定制的DPOR算法。它基于Optimal-DPOR,一种用于多线程程序的最优DPOR算法;我们展示了如何将其扩展以适用于事件驱动程序。我们证明了Event-DPOR对所有程序的正确性,以及对一个大型子类的最优性。一个复杂之处在于,Event-DPOR中检查新执行冗余性的操作是NP-hard的,如本文所示;我们通过一系列廉价(但不完备)的测试来高效地检查冗余性以解决此问题。我们的实现和实验评估表明,与使用锁模拟处理程序线程的其他工具相比,Event-DPOR在各种程序上比其他最先进的DPOR算法快指数倍,并成功完全避免了对执行的不必要探索。
英文摘要:
Event-driven multi-threaded programming is an important idiom for structuring concurrent computations. Stateless Model Checking (SMC) is an effective verification technique for multi-threaded programs, especially when coupled with Dynamic Partial Order Reduction (DPOR). Existing SMC techniques are often ineffective in handling event-driven programs, since they will typically explore all possible orderings of event processing, even when events do not conflict. We present Event-DPOR , a DPOR algorithm tailored to event-driven multi-threaded programs. It is based on Optimal-DPOR, an optimal DPOR algorithm for multi-threaded programs; we show how it can be extended for event-driven programs. We prove correctness of Event-DPOR for all programs, and optimality for a large subclass. One complication is that an operation in Event-DPOR, which checks for redundancy of new executions, is NP-hard, as we show in this paper; we address this by a sequence of inexpensive (but incomplete) tests which check for redundancy efficiently. Our implementation and experimental evaluation show that, in comparison with other tools in which handler threads are simulated using locks, Event-DPOR can be exponentially faster than other state-of-the-art DPOR algorithms on a variety of programs and manages to completely avoid unnecessary exploration of executions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。