Communicating with hardware!

I was wondering... Is it able to create a C++ program (console) which is able to communicate with processor where you could set how much processors are gonna work...I saw that kind of program at my friends computer and I think it could be very useful
Well... if you want the constant nightmares I'm plagued with every time I manage to cry myself to sleep...

http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
http://www.geocities.com/siliconvalley/park/3230/x86asm/asmles01.html

I don't know of any OS inspecific way to do things like that.

Just to explain the first sentance... ASM is REALLY HARD. It's easy to learn, but very hard to actually use.
Last edited on
You can use an external library, it's simpler than assembly + it would be more portable
so it is possible to make it in C++? I knew for assembly but I am interested in C++?!
Setting affinity requires system calls. It's something unrelated to the hardware. It's the kernel that decides on which core the next time slice of a process will run.

Setting affinity requires system calls. It's something unrelated to the hardware. It's the kernel that decides on which core the next time slice of a process will run.


Is it easier to do it in Linux or Windows OS?
Topic archived. No new replies allowed.