-
Notifications
You must be signed in to change notification settings - Fork 22
Strategies for using the dispatchers
Devrath edited this page Jan 13, 2024
·
3 revisions
- To execute code on the main thread we just use
Dispatchers.Main.immediate
- Dispatchers.Default
- Used for intensive computation tasks.
- Number of threads used are
max(2,no_of_cpu_cores)
- Dispatchers.IO
- Used for IO operations(mostly waiting tasks)
- Number of threads used are
max(64,no_of_cpu_cores)
- The maximum of threads can be further increased by altering system.properties