使用并行计算可以加快多线程win32应用程序的速度吗? [英] Using Parallel computing can speed up multithreaded win32 application?

查看:98
本文介绍了使用并行计算可以加快多线程win32应用程序的速度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有一个多线程WIN32应用程序,该应用程序具有多个线程,这些线程执行彼此不相关的任务.所有在不同文件上执行相同操作的线程.

Have a multithreaded WIN32 application with multiple threads performing individual tasks which are not related to each other. Alll the threads performing same operation on different files. 

在这种情况下使用并行计算可以进一步加快处理速度吗?

Using Parallel computing in this case can further speed up the processing?


推荐答案

这里的瓶颈是设备I/O;特别是您的硬盘驱动器.如果未缓存文件,则不会获得预期的加速,但是一旦缓存了文件,您将开始看到一些可伸缩性.

The bottle neck here is the device I/O; specifically you hard drive driver. If the files are not cached you will not get the expected speedups, but once the files are cached you will start seeing some scalability.


这篇关于使用并行计算可以加快多线程win32应用程序的速度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆