Natively vs. non-natively compiled threaded Android applications
Institution: | University of Skövde |
---|---|
Department: | |
Year: | 2014 |
Keywords: | Android; multi-threading; concurrency; benchmarking; Java; C; C++; Natural Sciences; Computer and Information Science; Computer Science; Naturvetenskap; Data- och informationsvetenskap; Datavetenskap (datalogi); Computer Science - Specialization in Systems Development; Datavetenskap - inriktning systemutveckling; Computer Science; Datavetenskap |
Record ID: | 1352006 |
Full text PDF: | http://urn.kb.se/resolve?urn=urn:nbn:se:his:diva-9615 |
The aim of this work is to investigate whether threaded Android-applications written in C or C++ are more time-efficient than threaded Android-applications written in Java. The first part of the work was to perform a literature analysis in order to find out which types of algorithms were used in previous studies comparing the performance between non-threaded Android-applications written in Java and C/C++. Another literature analysis was performed where the outcome was to find suitable threaded versions of algorithms that could be used to compare the difference in time-consumption between algorithms implemented in Java and C/C++. Results have shown that for simple arithmetic operations and sorting functions, it is still possible to gain performance in terms of time-efficiency by implementing applications in C/C++. However, there are clear indications that these gains are smaller than they are in the non-threaded case. In algorithms dealing with string operations, the Java-version was significantly more time-efficient than the C++-version