flat assembler
Message board for the users of flat assembler.

Index > Main > can you code for specific cores in assembly?

Author
Thread Post new topic Reply to topic
luna7ic



Joined: 26 Oct 2017
Posts: 3
luna7ic 08 Nov 2017, 12:26
i have a 4-core cpu.can i code for specific cores in assembly?
like one core doing something and another doing something else. Rolling Eyes
Post 08 Nov 2017, 12:26
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2545
Furs 08 Nov 2017, 13:36
Only if you use a low level OS or write your own, otherwise, you have to rely on your OS to schedule threads on two cores (which is usually what happens but not always). Or use OS-specific mechanisms to force it to do that (CPU affinity etc).
Post 08 Nov 2017, 13:36
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 08 Nov 2017, 16:03
All mainstream OSes allow programs to set the affinity of each thread, and for the whole program. You can choose how to use it for what you need.
Post 08 Nov 2017, 16:03
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.