Parallel computing and computer processor

1 次查看(过去 30 天)
what is the relationship between parallel computing and the architecture of the computer processor. So if I have a computer with (Pentium® Dual-Core CPU T4500 @2.30GH 2.30GH), can I run for example an optimization problem on 4 core.
cheers

回答(1 个)

Walter Roberson
Walter Roberson 2016-11-25
If you have one dual core CPU then for sure you could run two workers without them interfering with each other.
If you have a CPU that supports hyperthreading and it is enabled in the BIOS then you could run two workers per core. However, the technology involved is essentially that the second thread per core only gets to use the CPU when the other thread does not need to compute, such as if it is handling an interrupt or waiting for something to happen. You do not get to do two things simultaneously, you just get faster switching when one starts to slack off. This might be fine for workers that are reading files, but not if you have heavy computation.
You can request any number of workers in your pool, but beyond the (number of cores) times (number of active hyperthreading per core) you would definitely be into the slower operating system work management where workers compete with each other for access to a CPU core.
For heavy computation, using hyperthreading is often not very useful.
Note: on an active system it can be effective to deliberately leave one core unused for the operating system to interact with the user and run virus scans and other similar overhead.

类别

Help CenterFile Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by