linux - ThreadAffinity in windows -


currently porting linux application windows, need set thread affinity.

currently linux method is:

pthread_setaffinity_np(curthread->threadid, sizeof(cpu_set_t), &curthread->coremask);

i need replace equivalent windows call.

i have found "setthreadaffinitymask" method equivalent windows call. can use this? if yes how place arguments call?

can me on this.

possibly useful functions:

read multiple processors , processor groups on msdn starter.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -