D
D
dmitriev_maksimka2015-12-28 16:44:36
Parallel Computing
dmitriev_maksimka, 2015-12-28 16:44:36

The concept of a processor in parallel programming?

Hello
Explain the meaning of the expression "distribution of calculations between processors." Do you mean some computer system containing n physical processors? Then how does a program run in parallel on a regular PC, where there is only one processor?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Martyanov, 2015-12-28
@vilgeforce

There is a package, if I don't confuse the term. This is the physical crap that sticks into the board. That's what you call the "processor" in the question. A package can have many compute cores, 2,4,8,16 and so on. And it is the cores that work in parallel: each core, independently of the other, at the same moment can perform its part of the task.

S
Saboteur, 2015-12-28
@saboteur_kiev

In parallel, programs on the same processor are executed in parts.
That is, the execution of one program is interrupted, another is executed. Then it is also interrupted, the first one is executed.
In multitasking operating systems, this is monitored by the system kernel. It keeps track of how much time to allocate to various processes. Processes, respectively, can partially block the interrupt in certain places.
In older tasks, the programmer himself followed this, connecting his handlers to interrupts, for example, creating resident programs in DOS.

O
Oleg Tsilyurik, 2015-12-28
@Olej

on a normal PC, where there is only one processor?

Now you will find "ordinary PCs" with one processor ... the most seedy 2-4 cores, most often, and even hyperthreading adds the number of processors on its own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question