954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do I implement multicore processing in my assembly code?

I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone show me how to use them in assembly. If someone could give me some code in simplest form as possible (for me to understand), to help me that would be very helpful. The assembler I use is Nasm and I'm not to good at switching to protected mode so I use real mode for now, since I'm a beginner and assembly.

(Also I'm not looking for a lot maby just a simpe 2 core program, comments in the code would also be helpful :))

ThatGuy2244
Light Poster
34 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

Well, you if you have 2 processors/cores and use CreateThread the OS decides which to use? Or you can look into SetProcessAffinityMask and SetThreadAffinityMask Windows API to delegate what processor/core you want to use

GunnerInc
xor eax, eax
Team Colleague
79 posts since Jan 2011
Reputation Points: 38
Solved Threads: 13
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: