Hi,
Let us assume I have a very simple program.I wonder if there is any
possibility that I can set in this application an affinity so that
the processor binds it to core 2 for instance.
Code:
int main(int argc, char *argv[]){
int j
// SET_AFFINITY(CORE 2) ... IS THIS POSSIBLE here?
for(j = 0; j < 10; j++)
{
printf('test\n');
}
}
Is this possible to do in an application that runs than under root? Or
is this just possible after the application started with using the taskset tool?
many thanks