摘要
针对网络管理软件后台存在应用服务器的数据处理量多和资源消耗过大的问题,提出了改进算法,研究了线程池技术,包括线程池的工作原理、线程池使用方式、线程池配置方法、线程池监控方法和线程池的关闭方法。线程池根据基本线程池、工作队列和整个线程池的饱和情况进行工作,依据任务性质、任务优先级、任务执行时间和任务依赖性进行线程配置,以达到高效执行和最优资源的利用。
Aiming at the problems of large data processing capacity and excessive resource consumption of application server existing in the background of network management software, this paper proposes an improved algorithm and studies such thread pool technology as operational principle, usage mode, configuration method, monitoring method and shutdown method of thread pool. The thread pool works according to the saturation situation of basic thread pool, work queue and whole tread pool. The thread configuration is carried out according to task nature, priority, execution time and interdependence, in order to achieve the efficient implementation and the optimal usage of resources.
出处
《计算机与网络》
2014年第6期49-52,共4页
Computer & Network