Page 1 of 1

Pure multithreading/multicore processors?

Posted: Sun Dec 30, 2007 12:58 am
by michael
Well I think my question is pretty much covered in the title :) lol..

Im the kind of person that can find ways around stuff so im not asking how to do locks on objects and all that stuff that comes along with that.. Just how do I start execution of something on another processor? Oh and how do I find out how many processors are installed on the system?

Thanks

Posted: Tue Jan 01, 2008 12:28 am
by Andyhhp
The CPUID instruction can be used to find out how many cores are present. You will have to find the documentation relevent to the processor you are writing your code for because the CPUID instruction is vender-dependant.

As for running programs on different cores, first you have to start them (as only the first core is started and runs at startup) then manage to run it on a different core. Sadly this is above my ability so I cant help you

Posted: Tue Jan 01, 2008 12:46 am
by michael
Thanks anyway :)

running programs

Posted: Tue Feb 10, 2009 9:29 am
by akash
You will have to find the documentation relevent to the processor you are writing your code for because the CPUID instruction is vender-dependant.

As for running programs on different cores, first you have to start them (as only the first core is started and runs at startup) then manage to run it on a different core. Sadly this is above my ability so I cant help you