S3 ‐ Multithreading strategies - S3-G31-Kotlin-QueueHub/mobile-app-android GitHub Wiki
In our application, our multithreading strategies are implemented with coroutines in Kotlin. We use different strategies as use of types of threads in Kotlin. For example, to launch synchronous process we use the main thread, but however, to enhance the performance and the response time for our application some processes related to input/output features need to launch the I/O thread.
The I/O thread are used to avoid ANRs errors or some GUI lagging, and also for critical processes in transformation of data, for example calculate the distance to the place are launched in the default dispatcher.
With that multithreading strategies we enhance the performance of our application, and a better user experience into the application with less time of response in all features. The navigation and UI drawing are more quickly because the main thread can share responsibilities with other threads.