检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:周岚[1]
机构地区:[1]江苏联合职业技术学院徐州财经分院,江苏徐州221008
出 处:《软件工程》2017年第3期21-23,共3页Software Engineering
摘 要:通常我们使用异步完成许多计算型的耗时操作,取得应用程序运行所需要的部分数据,再将它们绑定在UI中呈现,这个过程由于数据量偏大,窗体会出现"失去响应"的情况,而线程技术的使用可以方便的实现并发执行,提升资源的利用率,提高程序处理效率,解除"假死"这种糟糕的体验。本文通过对C#多线程技术及委托方法的介绍,分析研究了在WinForm窗体开发中解决假死状态的两种方法,给出实例及相关代码,并对这两种方法的特点进行了总结。Asynchronous manners are usually adopted to implement lots of time-consuming computing operation,in order to achieve the data required by the application and bind them to be presented in UI.Due to the great amount of data,the form often stops responding.The multi-thread technology can facilitate the implementation of concurrency, promote the resource utilization,improve processing efficiency, and avoid the terrible experience of "suspended animation".Based on the C# multi-thread technology and principal methods,the paper analyzes two solutions to the problems of suspended animation in the WinForm development,provides examples and related code,and summarizes the characteristics of two solutions.
关 键 词:多线程 假死 委托 BackGroundWorker控件
分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.4