
144: Kotlin Coroutines with Marcin Moskala
Programming Throwdown
How to Limit Parallelism for Your CPU Intensive Operations
Yes there are tools for that you can limit parallelism for your usage the whole chapter and these patters in my book Kotlin coroutines is about that. One of them is exactly what you described so if you have CPU intensive things use these patters default that uses as many threads as you have cores however if you think you might use it too intensively you might starve other processes. Another case is with a blocking calls so as I told you there is a different dispatcher for or blocking calls and then this this pattern also has a limit because it's a pretty dangerous to not give any limit at all.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.