how to bind a task to "dedicated" core? (using cgroups/cpusets?)

Latest response

I launch my application, and I bind one of it threads using sched_setaffinity to the certain core. This thread is latency-critical so I want to move everything else from this core.
I've already moved interrupts from this core.

Now I want to be sure that no other tasks are using this core. As I inderstand I should use cgroups (cpusets?). How can I ensure that no other processes (and no other threads of my application) are using this core?

Responses