Date: Mon, 31 Jan 2005 08:41:34 -0600 (CST) From: security@revolutionsp.com To: freebsd-hackers@freebsd.org Subject: Simple question about CPUs and processes Message-ID: <51547.81.84.175.77.1107182494.squirrel@81.84.175.77>
next in thread | raw e-mail | index | archive | help
Hi list, I'd like some insight on the following; Me and a friend were discussing tech stuff and he said that, when using dual (or more) CPU systems, it is the hardware itself (and alone) choosing which CPU will execute this or that process. But I think it is the OS kernel (FreeBSD in this case) and the SMP implementation that decide this process should live in CPU0 or CPU1, ie it's FreeBSD itself choosing on what CPU a process will reside in. I'm by no means an experienced programmer, so I can't check this for myself; just following logic and intuition, I think it makes sense it is the OS keeping track of what process is in which CPU. Which approach is right? Please add as many technical details as needed.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51547.81.84.175.77.1107182494.squirrel>