首页> 外文OA文献 >The influence of thread pools on application performance
【2h】

The influence of thread pools on application performance

机译:线程池对应用程序性能的影响

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Multithreaded applications are faster as they can effectively exploit the capabilities of modern computer systems.udThe purpose of this thesis is to present the efficiency of multithreaded applications with the use of a simple Windows console application which copies files from one directory to another using different thread pools. udIn this thesis we describe the ways of developing multithreaded applications, some limitations which should be taken into account when developing multithreaded applications, and the principles of protecting the access to shared data from different threads simultaneously.udA console application for the copying of files was developed in Visual Studio 2010 in C++ programming language. Based on the input parameter, the application determines the number of working threads in a thread pool and then assigns a specific task to each thread.udThe efficiency of the application was tested with various test cases and the results are suitably presented.udWe learned that multithreaded applications are more efficient for the copying of larger files although the hard disk presents a certain limitation.udA higher number of worker threads does not increase the efficiency of the application when copying smaller files which is a faster operation. The time needed for creating new worker threads and for checking whether any threads are free decreases the efficiency of the application if the number of worker threads is too high.
机译:多线程应用程序可以更快地使用,因为它们可以有效地利用现代计算机系统的功能。 ud本文旨在通过使用简单的Windows控制台应用程序来展示多线程应用程序的效率,该应用程序使用不同的线程将文件从一个目录复制到另一个目录池。 ud在本文中,我们描述了开发多线程应用程序的方式,在开发多线程应用程序时应考虑的一些限制以及保护同时从不同线程访问共享数据的原理。 ud用于复制文件的控制台应用程序是在Visual Studio 2010中以C ++编程语言开发的。基于输入参数,应用程序确定线程池中的工作线程数,然后为每个线程分配特定的任务。 ud使用各种测试用例测试了应用程序的效率,并适当地给出了结果。尽管硬盘存在一定限制,但多线程应用程序对于复制较大的文件更为有效。 ud在复制较小的文件时,工作线程数较多并不会提高应用程序的效率,这是一种较快的操作。如果工作线程数过多,则创建新工作线程以及检查是否有空闲线程所需的时间降低了应用程序的效率。

著录项

  • 作者

    Bišćanin Igor;

  • 作者单位
  • 年度 2011
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"sl","name":"Slovene","id":39}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号