Programming Throwdown cover image

144: Kotlin Coroutines with Marcin Moskala

Programming Throwdown

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app