Abstract
Theatre is a control-based actor system currently developed in Java, whose design specifically addresses the development of predictable, time-constrained distributed systems. Theatre, though, can also be used for untimed concurrent applications. The control structure regulating message scheduling and dispatching can be customized by programming. This paper describes a novel implementation pTheatre (Parallel Theatre), whose control structure can exploit the potential of parallel computing offered by nowadays multi-core machines. With respect to the distributed implementation of Theatre, pTheatre is more lightweight because it avoids the use of Java serialization during actor migration, and when transmitting messages from a computing node (theatre/thread) to another one. In addition, no locking mechanism is used both in high-level actor programs and in the underlying runtime support. This way, common pitfalls related to classic multi-threaded programming are naturally avoided, and the possibility of enabling high-performance computing is opened. The paper demonstrates the potential of the achieved realization through a parallel matrix multiplication example.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Agha, G.: Actors: a model of concurrent computation in distributed systems. PhD Thesis, MIT Artificial Intelligence Laboratory (1986)
Karmani, R.K., Agha, G.: Actors, pp. 1–11. Springer US, Boston, MA (2011)
Agha, G., Palmskog, K.: Transforming threads into actors: learning concurrency structure from execution traces. In: Principles of Modelling, pp. 16–37. Springer, Cham (2018)
Lee, E.A.: The problem with threads. Computer 39, 33–42 (2006). https://doi.org/10.1109/MC.2006.180
Jafari, A., Khamespanah, E., Sirjani, M., Hermanns, H., Cimini, M.: PTRebeca: modelling and analysis of distributed and asynchronous systems. Sci. Comput. Program. 128, 22–50 (2016)
Cicirelli, F., Nigro, L.: Control centric framework for model continuity in time-dependent multi-agent systems. In: Concurrency and Computation: Practice and Experience, vol. 28, no. 12, pp. 3333–3356. Wiley (2016)
Cicirelli, F., Nigro, L., Sciammarella, P.F.: Model continuity in cyber-physical systems: a control centered methodology based on agents. Simul. Model. Pract. Theory 83, 93–107 (2018). https://doi.org/10.1016/j.simpat.2017.12.008
Nigro, L., Sciammarella, P.F.: Qualitative and quantitative model checking of distributed probabilistic timed actors. Simul. Model. Pract. Theory 87, 343–368 (2018)
Cicirelli, F., Nigro, L., Sciammarella, P.F.: Seamless development in Java of distributed real-time systems using actors. Int. J. Simul. Process Model. 15, Nos 1/2, 13–29 (2020)
Nigro, L., Sciammarella, P.F.: Verification of a smart power control systems using hybrid actors. In: IEEE WorldS4, London, 30–31 July 2019
Cicirelli, F., Nigro, L.: Home energy management using theatre with hybrid actors. In: IEEE/ACM 23rd International Symposium on Distributed Simulation and Real Time Application (DS-RT 2019), Cosenza, Italy, 7–9 Oct 2019
Fox, G.C.: Solving problems on concurrent processors. In: General Techniques and Regular Problems, vol. 1. Prentice-Hall (1988)
Fox, G.C., Otto, S.W., Hey, A.J.G.: Matrix algorithms on a hypercube I: matrix multiplication. Parallel Comput. 4, 17–31 (1987)
Gergel, V.: Parallel methods for matrix multiplication. In: 2012 Summer School on Concurrency, pp. 1–50, St. Petersburg, Russia, 22–29 Aug 2012
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Nigro, C., Nigro, L. (2021). Lock-Free Parallel Computing Using Theatre. In: Yang, XS., Sherratt, R.S., Dey, N., Joshi, A. (eds) Proceedings of Fifth International Congress on Information and Communication Technology. ICICT 2020. Advances in Intelligent Systems and Computing, vol 1183. Springer, Singapore. https://doi.org/10.1007/978-981-15-5856-6_65
Download citation
DOI: https://doi.org/10.1007/978-981-15-5856-6_65
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-15-5855-9
Online ISBN: 978-981-15-5856-6
eBook Packages: EngineeringEngineering (R0)