Articles under the 'Kotlin' tag
How to Run Parallel Coroutines in Kotlin
OverviewWe can think about Kotlin coroutines as lightweight threads. They allow us to execute code concurrently and are less resource-consuming than threads. Using coroutines can improve the performance, responsiveness, and scalability of our applications.In this tutorial, we’ll explore different wa
...
More >>
2024-01-12
Kotlin
/
Lightweight Threads
A High Reliability Task Execution Framework Based on XXL-JOB
What is a Task Scheduling FrameworkIn many applications, some tasks need to be performed periodically, such as generating reports, backing up data, updating caches, and so on. These tasks usually need to be executed automatically within a specified time interval, and need to run stably and reliably,
...
More >>
Understanding and Implementing Kotlin Coroutines
1. Concept of Kotlin CoroutinesKotlin Coroutines is a well-designed thread framework that uses threads at the underlying level. Coroutines can be understood as tasks executed on threads, and these tasks can switch between different threads. A single thread can run multiple coroutines, and coroutines
...
More >>