help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detect number of cpus


From: Fredrik Lingvall
Subject: Detect number of cpus
Date: Wed, 23 Jan 2008 19:26:11 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071118)

On a Linux box one can do, for example,

[dummy,tmp_str]= system('cat /proc/cpuinfo | grep model | grep name');
n_cpus = size(strfind(tmp_str,'model'),2);

to detect the number of CPUs/Cores on the system. Is is possible to do
something similar on Windows?

/Fredrik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]