change cpu affinity parameter 

from 0 to getpid()