12-13-07 06:24 PM
On Thu, 13 Dec 2007 05:06:18 -0800 (PST), kasthurirangan.balaji@gmail.com
<kasthurirangan.balaji@gmail.com> wrote:
> Our system has 4 processors. We do not use threads. We use forks. Just
> by using forks, can we guarantee that all the 4 processors are
> utilized appropriately or do we need to use threads for it?
Neither multiple processes nor multiple threads guarantee this;
however, both make it very likely (that is, you'll get appropriate
utilization if the scheduler is doing its job sanely, which includes
for example not swapping processes between processors for nothing).
In short, you should be fine, or if you're not, at least it's not the
fault of using multiple processes as such.
--
Mikko Rauhala - mjr@iki.fi - <URL: http://www.iki.fi/mjr/ >
Transhumanist - WTA member - <URL: http://transhumanism.org/ >
Singularitarian - SIAI supporter - <URL: http://singinst.org/ >
[ Post a follow-up to this message ]
|