如何将单核过程分散到多核 [英] How to disperse single core process to multi core

查看:139
本文介绍了如何将单核过程分散到多核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用双核,delphi xe6和不支持多核的api.用这些代码编码的应用程序将满载一个内核.我可以将负载分散到另一个核心吗?

I use dual-core, delphi xe6 and api which doesn't support multi-core. The application coded with these makes full load of one core. Can I disperse the load to the other core?

推荐答案

您正在寻找的不仅仅是多线程. (或者可能是多处理).

What you are looking for is more than likely multithreading. (Or maybe multiprocessing.)

您应该重写您的应用程序以处理数据并以并行方式执行任务.尽管这并不是一个真正困难的任务,但您所提问题的措词表明您对并行编程的概念并不熟悉.

You should rewrite your application to process data and perform tasks in a parallel manner. While that is not a really difficult task, the wording of your question suggests, that you are not familiar with the concept of parallel programing.

如果您想学习如何利用线程这个SO问题这篇大使馆文章

If you wish to learn how to utilize threads this SO question, this embarcadero article, and this delphigeek article might help you to find the general direction.

这篇关于如何将单核过程分散到多核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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