Event Loop Coordination using Meta-Programming
Autor: | Dries Harnie, Wolfgang De Meuter, Laure Philips, Kevin Pinte |
---|---|
Přispěvatelé: | Vrije Universiteit Brussel (VUB), Rocco Nicola, Christine Julien, TC 6, WG 6.1, Julien, Christine, Nicola, Rocco De, Software Languages Lab |
Předmět: |
Ambient-oriented programming
Computer science Event (computing) Distributed computing Event loops 020207 software engineering Event loop Ranging 02 engineering and technology Mobile platforms Metaprogramming [INFO.INFO-NI]Computer Science [cs]/Networking and Internet Architecture [cs.NI] Coordination model 020204 information systems 0202 electrical engineering electronic engineering information engineering Code (cryptography) [INFO]Computer Science [cs] State (computer science) User interface Shut down |
Zdroj: | Vrije Universiteit Brussel Lecture Notes in Computer Science ISBN: 9783642384929 COORDINATION Lecture Notes in Computer Science 15th International Conference on Coordination Models and Languages (COORDINATION) 15th International Conference on Coordination Models and Languages (COORDINATION), Jun 2013, Florence, Italy. pp.196-210, ⟨10.1007/978-3-642-38493-6_14⟩ |
Popis: | International audience; Event-based programming is used in different domains, ranging from user interface development to various distributed systems. Combining different event-based subsystems into one system forces the developer to manually coordinate the different event loops of these subsystems. This leads to a lot of excessive code and, in addition, some event loops are prey to lifecycle state changes. On mobile applications, for example, event loops can be shut down when memory runs low on the device. Current approaches take care of the communication problems between the different types of event loops, but become complex when trying to deal with lifecycle state changes. We propose a new coordination model, Elector, that allows two event loops to run separately, and introduce a novel kind of reference, called undead references. These references do not only allow communication between the event loops, but also handle lifecycle state changes in such a way that they do not influence other event loops. |
Databáze: | OpenAIRE |
Externí odkaz: |