Towards the automatic synthesis of asynchronous communication mechanisms

Tesis doctoral de Kyller Costa GorgÁ´nio

The correct transfer of data between concurrent processes is important in the exploitation of parallel architectures within distributed real-time systems. Techniques for solving this problem generally rely on mutual exclusion principles to control access to shared communication resources. The traditional solution involves the use of semaphores to protect write and read operations on a shared memory helping to preserve the data being transmitted. the problem with this approach is that a minimum locking between the asynchronous communicating processes is not guaranteed. This is mainly because the semaphore protects the data access operations. Since these operations may be performed in a register of arbitrary size, this may take a long time to conclude. One way of solving this problem is to design a communication scheme such that the atomic actions of each process occur at a very small granularity level, when accessing binary control variables. an asynchronous communication mechanism (acm) is a scheme which manages the transfer of data between two processes not necessarily synchronized. The general scheme includes a shared memory and a set of unidirectional control variables. Each control variable is set by one process and read by the other. This schema allows the design of communication protocols in which the processes are fully asynchronous. However, the use of binary control variables turns the implementation of acms a slow and prone to errors task. the construction of acms is known to be a hard task, and until now it was typically made on an ad-hoc basis using a construct-and-verify approach. This work introduces a technique for the automatic synthesis of acms, having as starting point only its functional specification. The result is an acm implementation that can be used to communicate two asynchronous processes guaranteeing properties such as coherence and freshness. Coherence is related to the mutual exclusion between the communicating processes when accessing the communication buffer. Freshness is related to the fact that a written data must be made available for the reader. two approaches for the automatic synthesis of acms are described. The first one is based on the generation of a state graph specification for the acm. The state graph model captures the properties of an acm at the level of interleaving semantics. Then a petri net (pn) model is synthesized from the state graph. The method for the synthesis of petri nets is based on a more general procedure which uses the theory of regions. Finally, the implementation is derived from the pn. in this approach, the pn synthesized preserves coherence and freshness. This is guaranteed by construction. It is possible to generate state graph specifications of considerable size. However, the synthesis of pns is only possible for acms of very small size. This makes the state graph based approach of limited practical use. From the analysis of the state graphs and the few pn models obtained, it was observed that both show a very regula structure. This regularity turned possible the directly generation of the pn models. using this new approach, it is possible to generate bigger acms. The payback comes in the need to model check the pn before synthesizing the implementation. Coherence and freshness, are described as a set of ctl formulae, and model checking is applied over the pn. If the result is positive, the acm synthesis can proceed. Since the state space of the acms grows very fast, this new approach suffers of the state space explosion problem. Then it happens, it is still possible to synthesize the acm implementation, but it cannot be argued the correctness of coherence and freshness. the synthesis of acm implementations is discussed for both software and hardware. Although the software is synthesized as c++ source code, the technique is generic enough to be used to obtain source code for any programming language. The hardware is synthesized in the form of verilog code.

 

Datos académicos de la tesis doctoral «Towards the automatic synthesis of asynchronous communication mechanisms«

  • Título de la tesis:  Towards the automatic synthesis of asynchronous communication mechanisms
  • Autor:  Kyller Costa GorgÁ´nio
  • Universidad:  Politécnica de catalunya
  • Fecha de lectura de la tesis:  01/12/2010

 

Dirección y tribunal

  • Director de la tesis
    • Jordi Cortadella Fortuny
  • Tribunal
    • Presidente del tribunal: fernando Orejas valdés
    • henrií«tte cornelia margatetha Kleijn (vocal)
    • Javier Campos laclaustra (vocal)
    • luciano Lavagno (vocal)

 

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Scroll al inicio