Ask Your Question

johnjohn's profile - activity

2014-06-29 21:34:31 +0200 received badge  Popular Question (source)
2014-06-29 21:34:31 +0200 received badge  Notable Question (source)
2013-08-23 12:53:29 +0200 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 +0200 received badge  Editor (source)
2013-08-23 11:36:21 +0200 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)