A1 Refereed original research article in a scientific journal

Event-driven asynchronous method calls with the D-Bus message system




AuthorsOlli Salli, Olli Nevalainen, Ville Leppänen

PublisherWiley Online Library

Publication year2015

JournalSoftware: Practice and Experience

Volume45

Issue1

First page 53

Last page74

Number of pages22

ISSN0038-0644

eISSN1097-024X

DOIhttps://doi.org/10.1002/spe.2216


Abstract

The use of inter-process communication can yield many benefits for event-driven desktop software. However, inter-process communication (IPC) research has traditionally been focused on calculation-oriented distributed computing. This article shows that existing IPC solutions are a poor fit for the constraints imposed by event-driven programming. Our novel solution is built on top of the D-Bus system, which enjoys increased practical usage, but is still scantily researched. We focus on efficient handling of asynchronous D-Bus method calls, in a fashion similar to how Hypertext Transfer Protocol requests are treated in Asynchronous JavaScript and XML Web applications. This is supplemented with two design patterns that simplify processing of results for many kinds of asynchronous operations in event-driven software, besides just D-Bus calls. Our approach is shown to be more appropriate for event-driven applications than traditional remote procedure call systems in aspects as diverse as interactivity, threading complexity and electrical power usage.



Last updated on 2024-26-11 at 22:42