PLAM: Preemptive Layer Activation Architecture based on Multithreading in Context-Oriented Programming

Zihan Liu, Ikuta Tanigawa, Harumi Watanabe, Kenji Hisazumi

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

In recent years, with the development of embedded software, the demand for context-aware software and the need for Context-Oriented Programming (COP) frameworks is increasing. In general, within the COP framework, each method is managed in units of layers, and time is required to activate the layers following context changes. Compared to the traditional single-thread method, the use of multi-threading to control the layer activation doubles the system efficiency. Moreover, embedded software usually includes mechanisms for exception handling, such as communication disconnection, mechanical or hardware failures, and insufficient energy. These mechanisms are expected to be types of high-priority operations, which also require multi-threading to achieve preemptive layer activation. In this study, we propose an architecture for preemptive layer activation known as PLAM by using multi-threading, which is based on the RTCOP framework. Using PLAM, the non-exception handling layers can be activated simultaneously, and when the context of the exception handling layer is perceived, the program can call a certain function to suspend or terminate the activation process of the other layers. Finally, we package a series of functions as APIs so that users can use these to customize the context listener. A test application confirms the feasibility of the proposed approach.

Original languageEnglish
Title of host publicationProceedings of the 12th International Workshop on Context-Oriented Programming and Advanced Modularity, COP 2020
PublisherAssociation for Computing Machinery, Inc
ISBN (Electronic)9781450381444
DOIs
Publication statusPublished - 2020 Jul 21
Externally publishedYes
Event12th International Workshop on Context-Oriented Programming and Advanced Modularity, COP 2020 - Virtual, Online, United States
Duration: 2020 Jul 21 → …

Publication series

NameProceedings of the 12th International Workshop on Context-Oriented Programming and Advanced Modularity, COP 2020

Conference

Conference12th International Workshop on Context-Oriented Programming and Advanced Modularity, COP 2020
Country/TerritoryUnited States
CityVirtual, Online
Period20/7/21 → …

Keywords

  • COP
  • Embedded software
  • layer activation
  • multi-threading

ASJC Scopus subject areas

  • Computational Theory and Mathematics
  • Software

Fingerprint

Dive into the research topics of 'PLAM: Preemptive Layer Activation Architecture based on Multithreading in Context-Oriented Programming'. Together they form a unique fingerprint.

Cite this