Android中多线程机制的探究  被引量:3

Exploration of Multithreading Mechanism Based on Android

在线阅读下载全文

作  者:申翔翔 王鲁[1] 谢楚鹏 李景岭[2] 

机构地区:[1]山东农业大学信息科学与工程学院,山东泰安271018 [2]山东省农业科学院科技信息研究所,山东济南250100

出  处:《科技广场》2015年第6期234-239,共6页Science Mosaic

基  金:山东省农业重大应用技术创新课题"(山东西部经济隆起带主要粮食作物)农业大数据的数据采集;共享机制以及示范工程";山东省农业重大应用技术创新课题"食用菌智能化控制关键技术研究与示范"

摘  要:在Android应用程序的开发过程当中,为了获得最佳的用户体验,首先就要保证应用程序运行流畅。而默认情况下,一个Android应用程序会运行在一个线程中,若任务耗时比较长,就很容易引起线程阻塞,导致应用程序无响应。因而Android提供了解决此问题的两种多线程机制——AsyncTask机制和Handler机制,本文对这两种机制进行详细的讨论。In the development of Android application program, in order to obtain the best user experience, we should first guarantee that the application runs smoothly. However, by default, an application runs in a thread, if a task takes longer, it's easy to cause the thread block and lead the application no responding. Therefore, Android provides two mechanisms to solve this problem: one is AsyncTack and the other is Handler. The paper discusses in detail these two mechanisms.

关 键 词:UI线程 工作线程 AsyncTask HANDLER 消息循环 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象