Android 线程间通信的方式

1、通过单向数据管道传递数据

2、共享内存通信

3、实现消费者 - 生产者模式 BlockingQueue

4、对消息队列的操作

5、将任务发送回UI线程

原文链接:https://www.oreilly.com/library/view/efficient-android-threading/9781449364120/ch04.html

猜你喜欢

转载自blog.csdn.net/Michael_hejing/article/details/81666183