Android Concurrency

0
(0)

Android Concurrency
 

  • Author:G. Blake Meike
  • Length: 224 pages
  • Edition: 1
  • Publisher: Addison-Wesley Professional
  • Publication Date: 2016-06-30
  • ISBN-10: 0134177436
  • ISBN-13: 9780134177434
  • Sales Rank: #421774 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Write Apps for Maximum Performance and Responsiveness

    “Threading and concurrency are as important in mobile as they are in large, distributed systems. This book does an excellent job of re-introducing us to the basic concepts and describing how to apply them to the Android framework. Even the most experienced Android developer should pick up at least a few tricks from these pages.”
    —Dave Smith, PE, Google Developer Expert for Android

    Mastering concurrency is critical to developing software with superior performance and responsiveness. This is especially true for Android, where interruptions are frequent and abrupt, and in order to be correct, programs must be aware of component and process lifecycles in addition to being thread safe.

    You need a deep, Android-specific understanding of concurrency—and Android Concurrency delivers it. This guide in Addison-Wesley’s Android Deep Dive series for experienced Android developers helps you leverage today’s multi-core processors and heavily cached architectures, as well as major improvements built into Android 5 (Lollipop).

    Top Android developer and consultant Blake Meike strips the magic and mystery from concurrent programming and presents intensely practical solutions for everything from inter-thread communication to network communication. Meike introduces a simple but powerful architectural framework you can use to address new issues whenever they arise, and offers expert guidance for debugging even highly complex concurrency issues.

    Android Concurrency combines in-depth knowledge, proven patterns and idioms, and world-class insights for avoiding performance-killing mistakes. For serious Android developers, it will be an indispensable resource.

    You will

    • Gain new clarity about what concurrency really is, and how concurrent processes work
    • Master best practices for writing concurrent code that’s more robust and less susceptible to weird, hard-to-diagnose errors
    • Review the Java concurrency mechanisms Android’s constructs are built upon
    • Shape an approach to concurrency that reflects the unique characteristics of the Android environment
    • Avoid widespread misconceptions that lead Android developers into trouble
    • Make the most of AsyncTask—but only when it’s the right tool for the job
    • Leverage the powerful, lightweight Looper/Handler framework to support scheduled, asynchronous tasks and execute many message types
    • Use the Android Service component to separate business logic from UI
    • Understand the differences between started and bound services and use them effectively for intra- and inter-process communication
    • Perform scheduled tasks, including tasks requiring polling and explicit scheduling
    • Track down problems via static analysis, annotations, and assertions

    Table of Contents

    Chapter 1 Understanding Concurrency
    Chapter 2 Java Concurrency
    Chapter 3 The Android Application Model
    Chapter 4 Async Tasks And Loaders
    Chapter 5 Looper/Handler
    Chapter 6 Services, Processes, And Binder Ipc
    Chapter 7 Periodic Tasks
    Chapter 8 Concurrency Tools

    中文:

    书名:Android Concurrency

    编写应用程序以实现最高性能和响应速度

    “线程化和并发性在移动设备中和在大型分布式系统中一样重要。这本书出色地重新向我们介绍了基本概念,并描述了如何将它们应用到Android框架中。即使是最有经验的Android开发人员也应该至少从这些页面中学到一些诀窍。
    -戴夫·史密斯,PE,谷歌Android开发专家

    掌握并发性对于开发具有卓越性能和响应能力的软件至关重要。对于Android来说尤其如此,它的中断是频繁和突然的,为了正确,除了线程安全之外,程序必须知道组件和进程的生命周期。

    您需要对并发性有深入的、特定于Android的理解–以及 Android并发性 把它传递出去。艾迪生-卫斯理的这本指南 Android Deep Dive 面向经验丰富的Android开发人员的系列帮助您利用当今的多核处理器和高缓存体系结构,以及Android 5(棒棒糖)中内置的重大改进。

    顶尖的Android开发者和顾问Blake Meike剥离了并发编程的魔力和神秘感,并为从线程间通信到网络通信的一切提供了非常实用的解决方案。Meike引入了一个简单但功能强大的体系结构框架,您可以在出现新问题时使用它来解决它们,并为调试甚至高度复杂的并发问题提供专家指导。

    Android并发性 结合了深入的知识、成熟的模式和习惯用法以及世界级的洞察力,以避免导致性能下降的错误。对于认真的Android开发人员来说,这将是一个不可或缺的资源。

    You will

    • 对什么是并发以及并发进程是如何工作的有了新的了解
    • 掌握编写更健壮、更不容易出现难以诊断的奇怪错误的并发代码的最佳实践
    • 回顾Android的构造所基于的Java并发机制
    • 塑造一种反映Android环境独特特征的并发方法
    • 避免导致Android开发人员陷入麻烦的普遍误解
    • 充分利用AsyncTask–但前提是它是适合这项工作的工具
    • 利用功能强大的轻量级循环/处理程序框架来支持调度的异步任务并执行多种消息类型
    • Use the Android Service component to separate business logic from UI
    • 了解已启动和绑定的服务之间的差异,并有效地将它们用于进程内和进程间通信
    • 执行调度任务,包括需要轮询和显式调度的任务
    • 通过静态分析、注释和断言跟踪问题

    Table of Contents

    第1章了解并发性
    第2章Java并发性
    第三章Android应用程序模型
    Chapter 4 Async Tasks And Loaders
    第5章循环器/处理程序
    第6章服务、进程和活页夹IPC
    第七章定期任务
    第八章并发工具

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册