Learning Concurrency in Kotlin: Build highly efficient and robust applications
By:
Sign Up Now!
Already a Member? Log In
You must be logged into Bookshare to access this title.
Learn about membership options,
or view our freely available titles.
- Synopsis
- Take advantage of Kotlin's concurrency primitives to write efficient multithreaded applicationsKey FeaturesLearn Kotlin’s unique approach to multithreadingWork through practical examples that will help you write concurrent non-blocking codeImprove the overall execution speed in multiprocessor and multicore systemsBook DescriptionThe primary requirements of modern-day applications are scalability, speed, and making the most use of hardware. Kotlin meets these requirements with its immense support for concurrency. Many concurrent primitives of Kotlin, such as channels and suspending functions, are designed to be non-blocking and efficient. This allows for new approaches to concurrency and creates unique challenges for the design and implementation of concurrent code. Learning Concurrency in Kotlin addresses those challenges with real-life examples and exercises that take advantage of Kotlin's primitives. Beginning with an introduction to Kotlin's coroutines, you will learn how to write concurrent code and understand the fundamental concepts needed to be able to write multithreaded software in Kotlin. You'll explore how to communicate between and synchronize your threads and coroutines to write asynchronous applications that are collaborative. You'll also learn how to handle errors and exceptions, as well as how to leverage multi-core processing. In addition to this, you’ll delve into how coroutines work internally, allowing you to see the bigger picture. Throughout the book you'll build an Android application – an RSS reader – designed and implemented according to the different topics covered in the bookWhat you will learnUnderstand Kotlin’s approach to concurrencyImplement sequential and asynchronous suspending functionsCreate suspending data sources that are resumed on demandExplore the best practices for error handlingUse channels to communicate between coroutinesUncover how coroutines work under the hoodWho this book is forIf you’re a Kotlin or Android developer interested in learning how to program concurrently to enhance the performance of your applications, this is the book for you.
- Copyright:
- 2018
Book Details
- Book Quality:
- Publisher Quality
- ISBN-13:
- 9781788626729
- Publisher:
- Packt Publishing
- Date of Addition:
- 05/01/21
- Copyrighted By:
- Packt
- Adult content:
- No
- Language:
- English
- Has Image Descriptions:
- No
- Categories:
- Nonfiction, Computers and Internet
- Submitted By:
- Bookshare Staff
- Usage Restrictions:
- This is a copyrighted book.