Pure multithreading/multicore processors?

OS Design, Theory, and Programming

Moderator: Moderators

Pure multithreading/multicore processors?

Postby michael » Sun Dec 30, 2007 12:58 am

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
michael
 
Posts: 29
Joined: Thu Nov 15, 2007 12:06 am

Postby Andyhhp » Tue Jan 01, 2008 12:28 am

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
Andyhhp
Moderator
 
Posts: 387
Joined: Tue Oct 23, 2007 10:05 am
Location: 127.0.0.1

Postby michael » Tue Jan 01, 2008 12:46 am

Thanks anyway :)
michael
 
Posts: 29
Joined: Thu Nov 15, 2007 12:06 am

running programs

Postby akash » Tue Feb 10, 2009 9:29 am

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
akash
 
Posts: 1
Joined: Tue Feb 10, 2009 9:25 am


Return to Advanced OS Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron