flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > can you code for specific cores in assembly?

Author
Thread Post new topic Reply to topic
luna7ic



Joined: 26 Oct 2017
Posts: 3
can you code for specific cores in assembly?
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: 868
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: 15241
Location: 1I/╩╗Oumuamua
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.