- 博客(2)
- 资源 (7)
- 收藏
- 关注
原创 android系统应用程序电量消耗计算方法
1.反射出类com.android.internal.os.PowerProfile得到类对象PowerProfile2.使用PowerProfile的getAveragePower分别得到wifi单位耗电值wifiCost,数据流量单位耗电值radioCost,gps单位耗电值gpsCost3.在android 4.1以上系统解析系统文件/proc/net/xt_qtaguid/ifac...
2018-08-31 14:31:41 1341
原创 对原子性的理解
在cpu指令中,有一个原子性的概念,指的是一个操作能否在一条cpu中完成。在多线程环境下,对于不能在一条cpu指令中完成的操作,在发生线程切换时,对于线程共享的数据就可能被其它线程修改,导致线程重新拿到cpu执行时间时,计算结果不和预期;因此引入了线程互斥的概念。 java在语言级别提供了syncronized这一关键字(在指令级别是monitorenter和mo...
2018-08-31 14:23:57 1207
This is a private thing please dong download
2010-05-22
A brief introduction to DES
2010-05-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人