检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机应用与软件》2016年第2期188-191,279,共5页Computer Applications and Software
基 金:山东省自然科学基金项目(ZR2011FQ017)
摘 要:异步技术的选用是制约Android应用产品优劣的重要因素之一。目前Android应用开发的重要异步技术主要包括Async Task、Thread Pool、Thread+Handler这三种。针对这三种异步技术在面对短时间内高爆发的场景时的表现,设计了一个Android应用,分别在稳定性、响应速度、资源耗费等指标方面进行了对比实验及综合分析。实验结果表明,在这三种异步技术中,Thread Pool技术的综合表现最优秀。该技术能更好地适应于短时间内与网络进行大量数据交互的情形,并在一个移动OA项目中采用了Thread Pool技术,利用此技术实现了异步下载文件的功能。The selection of asynchronous techniques is an important factor restricting the pros andcons of Android applications. At present, the important asynchronous techniques of Android application development include AsyncTask, ThreadPool and Thread + Handler. Aiming at the performance of these three asynchronous techniques when facing the scene of high outbreak in short period, we designed an Android application, and carried out the contrast experiments and analyses on stability, reaction speed and consumption of resource separately. Experimental result showed that the ThreadPool technique had the best comprehensive performance among three asynchronous techniques. This technique could better adapt to the situation of interacting a large amount of data with network in a short period. In a mobile OA project the ThreadPool technique was adopted, and by using it the function of asynchronous files download was realised.
关 键 词:Android异步AsyneTask ThreadPool THREAD HANDLER
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.214