并发程序状态图表示的交换性分析
Analysis of Commutativity with State-Chart Graph Representation of Concurrent Programs
摘要:
我们提出了一种新的方法来检查并发程序的交换性,从他们的状态图。一组操作是可交换的,如果改变它们在对象上的执行顺序不影响对象的抽象状态并返回相同的响应。在对象级交换的并发操作可以在事务级并发执行,这在保持原子性和隔离性的同时提高了性能。在事务执行中利用对象级可交换性,可以重用现有的非阻塞编程技术实现线程级同步。在我们的方法中,我们生成状态图跟踪数据的原子指令调用并发对象在模型检验和原子指令表示为状态的状态转换表示。考虑到并发程序的不确定性,我们确定的交换性,通过穷举搜索相同的对象状态捕获在线程级的粒度在所有线程交织。使用这种方法,用户不仅可以验证操作之间的可交换性,而且还可以直观地检查方法在对象级别上的交换方式,这是当前最先进工具的优势。对象级的可交换信息有助于识别错误的实现和性能改进考虑。我们使用图形数据库Neo4j将对象状态表示为节点,以进一步帮助用户使用Cypher查询检查并发属性。
英文摘要:
We present a new approach to check for commutativity in concurrent programs from their state-chart graphs. A set of operations are commutative if changing the order of their execution on an object does not affect the abstract state of the object and returns the same response. Concurrent operations that commute at object-level can be executed concurrently at transaction-level, which boosts performance while preserving the appearance of atomicity and isolation. Utilizing object-level commutativity in transactional execution enables the reuse of existing non-blocking programming techniques for thread-level synchronization. In our approach, we generate state-chart graphs by tracking data on the atomic instructions invoked on the concurrent object during model checking and represent the atomic instructions as states in a state-transition representation. Considering the non-deterministic nature of concurrent programs, we determine commutativity by exhaustively searching for identical object states captured at a thread-level granularity across all thread interleavings. With this methodology, a user can not only verify commutativity among operations, but also can visually check ways in which methods commute at object-level, which is an edge over current state-of-the-art tools. The object-level commutative information helps in identifying faulty implementations and performance improvement considerations. We use the graph database, Neo4j, to represent object states as nodes that further assists the user to check for concurrency properties using Cypher queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。