Concurrency Techniques in Kotlin
Практическое руководство по многопоточности и асинхронности
Résumé :
Introduction
The book "Concurrency Techniques in Kotlin" by A. Foster, published in 2021, is a comprehensive guide to working with concurrency in the Kotlin language. In the era of multi-core processors and performance-demanding applications, the ability to properly manage parallel computations becomes critically important. The author consistently guides the reader from basic concepts to advanced techniques, using modern Kotlin features, including coroutines, threads, and channels.
What the book is about
The book covers all key aspects of concurrent programming in Kotlin. The first part is devoted to the basics: differences between parallelism and concurrency, memory models, issues of data races and locks. Then the author moves on to practical tools — from traditional Java threads to native Kotlin coroutines. Special attention is paid to the kotlinx.coroutines library, its dispatchers, scopes, and structured concurrency. The second half of the book covers advanced topics: channels for data exchange between coroutines, Flow for reactive streams, testing concurrent code, and integration with Android frameworks.
Who this book is for
The book is aimed at developers already familiar with the basics of Kotlin and wanting to deepen their knowledge in the field of multithreading. It will be useful:
- Android developers striving to write responsive and fast applications;
- Backend developers