A multi-threaded object-oriented programming model

  • Authors:
  • Jiajun Chen;Xiaodong Yuan;Guolian Zhengp

  • Affiliations:
  • Nanjing Univ., Nanjing, P.R. China;Nanjing Univ., Nanjing, P.R. China;Nanjing Univ., Nanjing, P.R. China

  • Venue:
  • ACM SIGSOFT Software Engineering Notes
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents a concurrent object-oriented programming (COOP) model established around concurrent objects which may have a body. Once an object with a body is created, its body begins to run as a separate execution thread of the object. Distinguished from some active-object-based concurrent object-oriented models, the object body in our model is not used for the concurrency control of objects, but only as a mechanism to introduce concurrent executions into OO model. Concurrency control is specified by the attributes of objects and the control codes are generated by a compiling system based on these attributes. In addition, objects should be designed in such a way that they can be used in both sequential and concurrent environments, no matter whether they have a body or not. In our model, several execution threads may coexist in an object and some synchronization mechanisms are provided to control the concurrent executions of these threads. The paper presents two examples of concurrent programming with our model.