Android Concurrency


Android Concurrency,1st edition (Android Deep Dive)
by G. Blake Meike
Print Length 页数: 224 pages
Publisher finelybook 出版社: Addison Wesley; 01 edition (20 Jun. 2016)
Language 语言: English
ISBN-10: 0134177436
ISBN-13: 9780134177434
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
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框架。即使是最有经验的Android开发人员也应该从这些页面中挑起至少一些技巧。“
-Dave Smith,PE,Google Developer Expert for Android
掌握并发对开发具有卓越性能和响应能力的软件至关重要。这对于Android而言尤其如此,中断频繁且突然,为了正确,除了线程安全之外,程序还必须了解组件和进程生命周期。
您需要一个深入的Android特定的并发理解,并且Android并发提供它。本指南在Addison-Wesley的Android Deep Dive系列中,为经验丰富的Android开发人员提供帮助,您可以利用当今的多核处理器和高度缓存的架构,以及Android 5(Lollipop)内置的主要改进。
顶尖的Android开发人员和顾问Blake Meike从并发编程中脱颖而出,并提供了从线程间通信到网络通信的强大实用解决方案。 Meike介绍了一个简单但功能强大的架构框架,可用于解决新问题,并提供专家指导,以调试甚至复杂的并发问题。
Android并发结合了深入的知识,经过验证的模式和成语,以及世界级的洞察力,以避免性能 – 杀死错误。对于严重的Android开发人员来说,它将是不可或缺的资源。
你会
了解什么是并发性真的是什么,以及并发流程是如何工作的
编写并行代码的最佳实践,更强大,更不易于出现奇怪的难以诊断的错误
查看Android的构造是建立在Java并发机制之上的
形成并行的方法,反映Android环境的独特特征
避免广泛的误解,导致Android开发人员陷入困境
充分利用AsyncTask,但只有当它是正确的工作工具
利用强大的轻量级Looper / Handler框架来支持调度的异步任务并执行许多消息类型
使用Android Service组件将业务逻辑与UI分开
了解启动和绑定服务之间的差异,并将其有效地用于进程间和进程间的通信
执行计划任务,包括需要轮询和显式调度的任务
通过静态分析,注释和断言来追踪问题
目录
第1章了解并发性
第2章Java并发
第3章Android应用模型
第4章异步任务和加载程序
第5章Looper / Handler
第6章服务,流程和粘合剂Ipc
第七章定期任务
第8章并发工具

相关文件下载地址

打赏
未经允许不得转载:finelybook » Android Concurrency

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫