Year: 2023
Type: dissertation
Abstract: With the rising demand of multi-core systems, the usage of concurrent programming has seen a growth lately. However, the development of correct and efficient concurrent programs is notoriously challenging. A Software Transactional Memory system (STM) provides a convenient programming interface for the programmer to access shared memory without worrying about concurrency issues. STM allows developing programs and reasoning about their correctness as if each transaction executed atomically and without interleaving. In order to check the correctness of any STM system, a formal description of the implementation’s guarantees is necessary. There are many correctness conditions for transactional memory, many of them involve the notion of a history of operations to the shared memory, some of which use graphs as tools to help formalize the correctness process. The use of graphs in STM formalism usually involves a depiction of dependencies and relations between transactions and their operations. One correctness condition in particular, called Opacity, uses a graph to represent conflicts between transactions in a history, and a method that extrapolates whether or not that history execution is considered correct. Graphs and graph transformations play a central role in the modeling of software systems. These models are specified via a formalism that uses a high-level abstraction that is independent of the platform, so the focus can be on the concepts rather than the implementation of the system being formalized. In Graph Grammars (GGs), the modification of graphs is specified via graph transformation rules, which schematically define how a state of the system may be transformed into a new state. When formalizing complex systems, GGs can take into account object-orientation, concurrency, mobility, distribution, etc. This thesis presents methodology to formalize STM algorithms using graph transformations that includes a verification of the correctness of the executions. The goal is not only to describe the algorithm procedures using production rules, but also include the steps necessary to apply the graph characterization of certain correctness criteria. The methodology includes three main steps: a translation of the algorithm into graph grammar, the method to generate histories and the test for correctness. Some case studies are presented, such as the CaPR+ algorithm, which deals with partial rollbacks. Another case study is the STM Haskell algorithm, which is more well known and is used to compare the behavior between different correctness criteria application. Finally, an alternative to the tool GROOVE, used for correctness verification, is presented in the form of an Event-B model that includes the same graph formalism of STM, but differs when dealing with the state space and proof of correctness test. Differently from other work that focuses on formalization of TM algorithms, the methodology proposed deals with graphs in every step, not just in the correctness verification. This results in a methodology that can take advantage of tools and features that focuses on graph transformation and possibly be part of a more automated process for future TM formalization.
Author: Cardoso, Diogo João
Institution: Universidade Federal de Pelotas
Language: Portuguese
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7119239692
