How can I set niceness and process affinity at the same time?

Viewed 2506

Is there a way to set the nice value of process and its affinity at the same time? For example:

 taskset -c 0,1 nice -20 proc

Update: It works like this. I thought it must me something more complex.

2 Answers
Related