Ask Your Question

johnjohn's profile - activity

2014-06-29 14:34:31 -0600 received badge  Popular Question (source)
2014-06-29 14:34:31 -0600 received badge  Notable Question (source)
2013-08-23 05:53:29 -0600 answered a question Run differents scripts in different cpu-cores

You can use taskset

But read what it says: "Note that the Linux scheduler also supports natural CPU affinity: the scheduler attempts to keep processes on the same CPU as long as practical for performance reasons"

This means that you don't have to do anything. Just launch 4 scripts on 1 pc and 2 scripts on the other and the kernel will set the affinity as required.

2013-08-23 04:36:58 -0600 received badge  Editor (source)
2013-08-23 04:36:21 -0600 asked a question Multivariate piecewise function?

Hi,

How can I define a function like this?

f(x,y) = x*y , when (x > 0),(y>0)

f(x,y) = -x*y, when (x <= 0), (y <=0)