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 条
  • [31] Third-order optical nonlinearities of sol-gel silica coating films containing J-like aggregates of a cyanine dye, NK-1967
    Jin, ZH
    Li, ZY
    Kasatani, K
    ICO20: LASERS AND LASER TECHNOLOGIES, 2005, 6028
  • [32] Resonant enhanced large third-order optical nonlinearities and responses of polyvinyl alcohol coating films containing J-like aggregates of a cyanine dye
    Zhongyu, L.I.
    Jin, Zhao-Hui
    Kasatani, Kazuo
    Okamoto, Hiroaki
    Takenaka, Shunsuke
    Zhongyu, L.I., 1600, Japan Society of Applied Physics (44):
  • [33] A path sensitive type system for resource usage verification of C like languages
    Kang, HG
    Kim, Y
    Han, T
    Han, H
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2005, 3780 : 264 - 280
  • [34] Complete genome sequencing and characterization revealed a recombinant subgroup B isolate of avian leukosis virus with a subgroup J-like U3 region
    Peikun Wang
    Yongli Yang
    Lulu Lin
    Haijuan Li
    Ping Wei
    Virus Genes, 2017, 53 : 927 - 930
  • [35] Complete genome sequencing and characterization revealed a recombinant subgroup B isolate of avian leukosis virus with a subgroup J-like U3 region
    Wang, Peikun
    Yang, Yongli
    Lin, Lulu
    Li, Haijuan
    Wei, Ping
    VIRUS GENES, 2017, 53 (06) : 927 - 930
  • [36] Speaking like a native: Vernacular languages and the state in Southern Rhodesia, 1890-1935
    Jeater, D
    JOURNAL OF AFRICAN HISTORY, 2001, 42 (03): : 449 - 468
  • [37] THE J-LIKE STRUCTURES OF AZOBENZENE-CONTAINING AMPHIPHILES, C10AZOC5N+BR- AND C8AZOC5N+BR-
    OKUYAMA, K
    MIZUGUCHI, C
    XU, GC
    SHIMOMURA, M
    BULLETIN OF THE CHEMICAL SOCIETY OF JAPAN, 1989, 62 (10) : 3211 - 3215
  • [38] ISOLATION AND CHARACTERIZATION OF THE MOUSE CD8 BETA-CHAIN (LY-3) GENES - ABSENCE OF AN INTERVENING SEQUENCE BETWEEN V-LIKE AND J-LIKE GENE SEGMENTS
    NAKAYAMA, K
    SHINKAI, Y
    OKUMURA, K
    NAKAUCHI, H
    JOURNAL OF IMMUNOLOGY, 1989, 142 (07): : 2540 - 2546
  • [39] A polymorphic modal type system for Lisp-like multi-staged languages
    Kim, LS
    Yi, KK
    Calcagno, C
    ACM SIGPLAN NOTICES, 2006, 41 (01) : 257 - 268
  • [40] A polymorphic modal type system for lisp-like multi-staged languages
    Seoul National University
    不详
    ACM SIGPLAN Not., 2006, 1 (257-268):