Configuring proximity to x86 multi-core processors

(I ask because it was before the serious SMP and multi-core that I studied the OS. I like to have some idea of ​​how the code is executed.)

If I load the x86 multi-core processor directly into my program. Can someone recommend a website that describes which assembler commands I should control affinity for?

+3
source share
2 answers

Affinity is not determined by the state of the CPU and therefore cannot be changed by assembly (separately). You need OS participation. And each OS will have a special challenge for this.

: , , , . .

( , , , , ), , , , , runqueue () runqueue .

, ? . , , , , , , , .

. Linux 2.6.29 arch/x86/kernel/smpboot.c function do_boot_cpu(), CPU APIC.

+5

Source: https://habr.com/ru/post/1710453/


All Articles