Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Android Multithreading Masterclass
Highest Rated
Rating: 4.6 out of 5(1,092 ratings)
6,383 students

Android Multithreading Masterclass

Master multithreading in Android: from a single thread to Thread Pools, RxJava and Kotlin Coroutines
Created byVasiliy Zukanov
Last updated 3/2024
English

What you'll learn

  • Write multithreaded code of any complexity in your Android apps
  • Learn the difference between the UI and background threads
  • Understand advanced concepts like Synchronization, Locks, Volatility and Happens-Before
  • Analyze and reason about the thread-safety of your code
  • Manage hundreds of inter-dependent threads
  • Prevent memory leaks
  • Compare popular concurrency frameworks for Android: AsyncTask, RxJava, Coroutines

Course content

13 sections81 lectures11h 11m total length
  • Java and Kotlin1:52

    Compare Java and Kotlin for Android development, highlighting identical memory and threading models and seamless interoperability. Emphasize Java in the course while Kotlin materials apply equally, except for coroutines.

  • Tutorial Application Overview and Important Info4:01

    Explore building the tutorial app, including demonstrations and ten exercises, and learn to manage memory and threads to prevent crashes while adjusting the default configuration, factorial timeout, and GitHub link.

Requirements

  • Basic experience with Android development

Description

Multithreading is an essential topic in Android development because, to write snappy and reliable Android applications, you must use more than one thread. Unfortunately, multithreading is also a very complex technique that introduces unique challenges. Incorrect multithreaded code manifests itself as unresponsive user interfaces, freezes, memory leaks, crashes and other bugs, all of which can be very challenging to find and fix.

In this course, you'll dive into the fundamentals of multithreading and learn to write correct and performant multithreaded code of any complexity in your Android applications!

Topics covered in this course:


  • What  a thread is

  • Why multithreading is uniquely challenging

  • Keep the user interface responsive

  • Make your multithreaded code thread-safe (i.e. correct and reliable)

  • Analyze the performance of multithreaded code

  • Manage up to hundreds(!) of concurrent threads

  • Compare several multithreading frameworks for Android, including AsyncTask, RxJava and Kotlin Coroutines

  • More...

You'll practice everything you'll learn here by solving a series of carefully designed, hands-on exercises. So, after completing this course, you'll have extensive hands-on experience with multithreaded code.

We'll review several popular concurrency frameworks and see how they accommodate the same complex multithreaded feature. This will allow you to grasp the full landscape of multithreading in Android ecosystem. This will allow you to choose the framework you like the best to use in your Android projects!

So, if you want to become an expert in Android multithreading, this course is perfect for you!

Who this course is for:

  • Android developers