检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:涂小妹 闫东升 TU Xiaomei;YAN Dongsheng(College of Civil Engineering and Architecture,Zhejiang Guangsha Vocational and Technical University of Construction,Dongyang 322100,Zhejiang,China;Hangzhou Weiyi Information Technology Co.,Ltd,Hangzhou 310018,China)
机构地区:[1]浙江广厦建设职业技术大学建筑工程学院,浙江东阳322100 [2]杭州微易信息科技有限公司,杭州310018
出 处:《智能计算机与应用》2024年第9期76-81,共6页Intelligent Computer and Applications
基 金:浙江省教育厅一般科研项目(Y202250677);校青年培育项目(2020QNPY004)。
摘 要:在数字社会对强算力的要求下,为使CPU性能最大化,需要使用线程池来提高CPU并行计算能力,然而在开发中线程池的使用往往伴随着线程池状态混乱以及难以监控的问题。针对该问题,本文提出了一种基于实时监控的动态调节线程池方法。该方法通过实时监控线程池参数,动态调整核心线程数与最大线程数的数量来规避由于线程资源的配置不足导致业务故障的问题;引入监控中心与报警中心模块,以便直观监测线程池的执行状态、线程数量、队列容量等来实现实时监控。引入配置中心模块实时同步修改线程池的参数,快速的调整线程池参数并同步到线程池中。实验结果表明,本文所提出的方法能有效的动态调节线程池,缓解线程池状态与任务混乱的问题。Under the requirement of strong computing power in digital society,in order to maximize CPU performance,it is necessary to use thread pools to improve CPU parallel computing capability,however,the use of thread pools in development is often accompanied by the problem of chaotic thread pool status and difficult to monitor.In order to address this problem,this paper proposes a method for dynamically adjusting the thread pool based on real-time monitoring.The method dynamically adjusts the number of core threads and the maximum number of threads by monitoring the thread pool parameters in real time to avoid the problem of business failures due to insufficient configuration of thread resources;introduces a monitoring center and an alarm center module in order to visually monitor the execution state of the thread pool,the number of threads,the capacity of the queue and so on to achieve real-time monitoring.The configuration center module is introduced to synchronously modify the parameters of the thread pool in real time,so as to quickly adjust the thread pool parameters and synchronize them to the thread pool.Experimental results show that the method proposed in this paper can effectively adjust the thread pool dynamically and alleviate the problem of thread pool state and task confusion.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.191.132.143