Ask Your Question

johnjohn's profile - activity

2014-06-29 21:34:31 +0100 received badge  Popular Question (source)
2014-06-29 21:34:31 +0100 received badge  Notable Question (source)
2013-08-23 12:53:29 +0100 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 11:36:58 +0100 received badge  Editor (source)
2013-08-23 11:36:21 +0100 asked a question Multivariate piecewise function?


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)