1. 程式人生 > >Linux指定CPU執行程式指令碼

Linux指定CPU執行程式指令碼

#!/bin/sh


for pid in `ps -e|grep ora|awk '{print $1}'`;
do
taskset -pc 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 $pid;
done