Linux: processes and threads in a multi-core processor

Is it true that threads, compared to processes, are less likely to benefit from a multi-core processor? In other words, will the kernel decide to execute threads on the same core, rather than on multiple cores?

I am talking about threads belonging to the same process.

+5
source share
6 answers

I don’t know how the (different) Linux scheduler is handled, but cross-threading becomes more expensive when threads run on different cores.

Thus, the scheduler may decide to start process threads on one CPU if there are other processes that require processor time .

, , , , , .

+9

, . . , , . , .

+2

. Linux, , . , .

+2

: , , , . , .

@Marcelo , , cpu- , , , .text-.

, .

+2

, .

, , , !

, - , , .

, , , NUMA.

: " HyperThreaded", .

, .

NUMA, . , , , HPC.

HPC (), TEST!. ( 10-25%, , )

+1

Windows , , Linux . , , , , .

, Linux, , , ? .

-2

All Articles