Difference between revisions of "Taskset"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
  
 +
taskset -p 17234
 +
pid 17234's current affinity mask: ffffffffffffffffffffffffffffffff
  
 
  taskset -p 17234 | grep pid | awk '{print $NF}' | wc -m
 
  taskset -p 17234 | grep pid | awk '{print $NF}' | wc -m

Revision as of 09:05, 24 March 2023

wikipedia:taskset set or retrieve a process's CPU affinity.

taskset -p


taskset -p 17234
pid 17234's current affinity mask: ffffffffffffffffffffffffffffffff
taskset -p 17234 | grep pid | awk '{print $NF}' | wc -m
33

Related

See also

Advertising: