期刊文献+

基于WPF消息机制的多UI线程并发阻塞问题解决方案 被引量:1

A Solution to the Problem of Concurrent Blocking of Multiple UI Threads Based on WPF Message Mechanism
下载PDF
导出
摘要 当前,软件产品的用户体验越来越受到人们的关注,影响用户体验的主要因素之一就是UI线程是否阻塞.在用户场景中多UI控件的高并发访问会造成UI线程阻塞,导致用户体验迅速下降.该文主要探讨WPF框架下UI线程并发阻塞问题,通过制作实验描述UI线程阻塞的具体问题,在分析Windows消息机制的基础上,提出利用发送同步消息和异步消息方法来解决UI并发阻塞问题.最后提出一种多UI线程并发阻塞问题的解决方案,并通过实验验证了这种方案的实际效果. At present,more and more attention has been paid to the user experience of software products.One of the main factors affecting the user experience is whether the UI thread is blocked or not. High concurrent access to multiple UI controls in user scenarios will cause UI thread blocking,resulting in a rapid decline in user experience.This paper mainly discusses the concurrent blocking problem of UI thread under WPF framework,describes the specific problem of UI thread blocking by making experiments,and proposes to solve the concurrent blocking problem of UI by sending synchronous messages and asynchronous messages based on the analysis of Windows messages. Finally,a solution of concurrent blocking of multiple UI threads is proposed,and the actual effect of this scheme is verified by experiments.
作者 周沭玲 金楠 侯海平 ZHOU Shu-ling;JIN Nan;HOU Hai-ping(Institute of Artificial Intelligence,Hefei College of Finance&Economices,Hefei 230601,China;Tonghua Party School,Tonghua 134002,China;Department of Information Engineering,Anhui Finance&Trade Vocational College,Hefei 230061,China)
出处 《通化师范学院学报》 2021年第4期90-96,共7页 Journal of Tonghua Normal University
基金 安徽省高等学校省级质量工程教学研究一般项目(2019jyxm0819) 安徽省高等学校省级质量工程项目(2017sjjd079) 安徽省高等学校自然科学重点项目(KJ2018A0909) 安徽财贸职业学院校级项目(2019xqgj13)。
关键词 WPF UI线程 消息机制 阻塞 WPF UI Thread message mechanism blocking
  • 相关文献

参考文献2

二级参考文献9

共引文献3

同被引文献6

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部