Computational & Technology Resources
an online resource for computational,
engineering & technology publications |
|
Civil-Comp Conferences
ISSN 2753-3239 CCC: 7
PROCEEDINGS OF THE SIXTH INTERNATIONAL CONFERENCE ON RAILWAY TECHNOLOGY: RESEARCH, DEVELOPMENT AND MAINTENANCE Edited by: J. Pombo
Paper 10.7
Model Refactoring for Spin-Lock Based Resource Sharing: A Case Study for Train Control and Management Software B.E. Beygo1, G. Dayı1 and K. İmre2
1UGES, ASELSAN, Ankara, Türkiye
B.E. Beygo, G. Dayı, K. İmre, "Model Refactoring for Spin-Lock Based Resource Sharing: A Case Study for Train Control and Management Software", in J. Pombo, (Editor), "Proceedings of the Sixth International Conference on
Railway Technology: Research, Development and Maintenance",
Civil-Comp Press, Edinburgh, UK,
Online volume: CCC 7, Paper 10.7, 2024, doi:10.4203/ccc.7.10.7
Keywords: model-driven development, spin-lock, UML, refactoring, threads, multithreading.
Abstract
Model-driven development is a widely used approach in various domains, and its popularity has been increasing in certain industries. Refactoring software models is essential to maintain and enhance the quality of software models. This paper focuses on refactoring an existing software model to achieve resource-sharing problems with the help of a spin-lock mechanism. Threads accessing the same resource might create problems if they read and write simultaneously. Locking is unnecessary if the shared resource is only read by all threads. Most of the time, the reading operation does not exist alone in the software projects, and the writing operation comes along with the reading operation. Problems arise when none of the synchronization mechanisms are used. In this work, we have worked on Unified Modeling Language diagrams to inject a spin-lock synchronization mechanism. For this purpose, we have identified refactoring opportunities, also known as model smells, and applied refactoring techniques. We discussed the results of applied refactoring techniques to demonstrate the effects of the smells.
download the full-text of this paper (PDF, 14 pages, 1010 Kb)
go to the previous paper |
|