[看书日记20160107]安卓的线程和线程池, bitmap的加载和cache
来源:互联网 发布:大连电视台直播软件 编辑:程序博客网 时间:2024/06/06 13:18
1. asyncTask中有两个线程池;
2.AsyncTask是串行进行任务,如果要并行,就要用executeonExecutor
3.每次启动IntentService,她的onStartCommand方法就会调用一次;
4.stopSelf(int startId)会等待所有的消息处理完毕之后才终止服务;
5.Android中有4个线程池:
5.1)FixedThreadPool,只有核心线程,而且数量固定,不会被系统回收;
5.2)CachedThreadPool ,只有非核心线程,线程数量不确定,超时60s就会被回收,
5.3)ScheduledThreadPool ,核心线程数量固定,而非核心线程的数量没有限制,非核心线程闲置时会被立即回收(用于执行定时任务,或固定周期的重复的任务)
5.4)SingleThreadExecutor , 内部只有一个核心线程;
0 0
- [看书日记20160107]安卓的线程和线程池, bitmap的加载和cache
- Android线程池及Bitmap加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Bitmap的加载和Cache
- Android Bitmap的加载和Cache
- 十二、Bitmap的加载和Cache
- 第十二章 、Bitmap的加载和Cache
- 跟我学习dubbo-ZooKeeper注册中心安装(2)
- mysql从零开始(三)数据类型
- Android必知必会--GreenDao缓存
- OC 字符串操作整理
- 阿里云服务器部署网站
- [看书日记20160107]安卓的线程和线程池, bitmap的加载和cache
- 程序人生--架构师
- swift基础(一)字符串处理
- maven中使用dom4j解析、生成XML的简易方法
- Could not find action or result常见情况分析
- 程序员要学习那些知识
- 我的面试经
- 序列求和
- socket 设置阻塞超时