A type safe state abstraction for coordination in J-like languages

被引:10
|
作者
Damiani, Ferruccio [1 ]
Giachino, Elena [1 ,2 ]
Giannini, Paola [3 ]
Drossopoulou, Sophia [4 ]
机构
[1] Univ Torino, Dipartimento Informat, I-10149 Turin, Italy
[2] Univ Paris 07, PPS, F-75013 Paris, France
[3] Univ Piemonte Orientale, Dipartimento Informat, I-15100 Alessandria, Italy
[4] Univ London Imperial Coll Sci Technol & Med, Dept Comp, London SW7 2BZ, England
关键词
D O I
10.1007/s00236-008-0079-y
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The state of a concurrent object, intended as some abstraction over the values of the fields of the object, usually determines its coordination behavior. Therefore, state is always in the programmer's mind, even though implicitly. We suggest a feature for J ava-like languages, which makes the state of a concurrent object explicit and supports the expression of the object's behavior depending on the state it is currently in. Namely, an object will be in one of the states declared in its class. The state determines the presence of fields and methods. State transition statements explicitly change the state of an object, and thus change the availability of fields and methods. When a thread calls a method which is declared in the object's class but absent from its current state, it waits, until the state of the object changes to a state which does contain that method. This directly expresses coordination. We claim that this feature makes it easier to understand and develop concurrent programs, and substantiate our claim through the discussion of some popular examples of concurrent programs written using this feature.We develop a type and effect system, which guarantees that, during execution of a method invoked on a concurrent object. No attempt will be made to access fields not available in the current state of and (2) No method invoked on a receiver (syntactically) different from may cause the invocation of a method on the latter guarantee helps to enforce the former and prevents a family of accidental violations of the intended coordination protocol.
引用
收藏
页码:479 / 536
页数:58
相关论文
共 50 条
  • [1] A type safe state abstraction for coordination in Java-like languages
    Ferruccio Damiani
    Elena Giachino
    Paola Giannini
    Sophia Drossopoulou
    Acta Informatica, 2008, 45 : 479 - 536
  • [2] J-Like Supramolecular Assemblies of Polyaniline in Water
    Omelchenko, Olga
    Tomsik, Elena
    Zhigunov, Alexander
    Guskova, Olga
    Gribkova, Oxana
    Gospodinova, Natalia
    MACROMOLECULAR CHEMISTRY AND PHYSICS, 2013, 214 (23) : 2739 - 2743
  • [3] Flaring loop parameters estimated from solar decimeter type U-like and type J-like fine structures
    Fernandes, Francisco C. R.
    Dutra, Jose Augusto S. S.
    Cunha da Silva, Rafael D.
    Sawant, Hanumant S.
    ADVANCES IN SPACE RESEARCH, 2012, 49 (11) : 1607 - 1614
  • [4] J-like protein family of Arabidopsis thaliana: the enigmatic cousins of J-domain proteins
    Tamadaddi, Chetana
    Verma, Amit K.
    Zambare, Vyankatesh
    Vairagkar, Avanti
    Diwan, Danish
    Sahi, Chandan
    PLANT CELL REPORTS, 2022, 41 (06) : 1343 - 1355
  • [5] A J-Like Protein Influences Fatty Acid Composition of Chloroplast Lipids in Arabidopsis
    Ajjawi, Imad
    Coku, Ardian
    Froehlich, John E.
    Yang, Yue
    Osteryoung, Katherine W.
    Benning, Christoph
    Last, Robert L.
    PLOS ONE, 2011, 6 (10):
  • [6] J SUBSTANCE OF CATTLE .8. J-LIKE SUBSTANCE OF RABBITS AND PRODUCTION OF IMMUNE ANTI-J1
    BEDNEKOFF, AG
    TOLLE, A
    FRIEDMAN, J
    STONE, WH
    DATTA, SP
    JOURNAL OF IMMUNOLOGY, 1963, 91 (03): : 369 - &
  • [7] On Sapphire and type-safe languages
    Wright, A
    COMMUNICATIONS OF THE ACM, 2003, 46 (04) : 120 - 120
  • [8] Type-safe higher-order channels in ML-like languages
    Park, Sungwoo
    ACM SIGPLAN NOTICES, 2007, 42 (09) : 191 - 202
  • [9] Flexible type-safe linking of components for Java']Java-like languages
    Ancona, Davide
    Lagorio, Giovanni
    Zucca, Elena
    MODULAR PROGRAMMING LANGUAGES, PROCEEDINGS, 2006, 4228 : 136 - 154
  • [10] Type-safe Higher-order Channels in ML-like Languages
    Park, Sungwoo
    ICFP'07 PROCEEDINGS OF THE 2007 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2007, : 191 - 202