http://bugzilla.novell.com/show_bug.cgi?id=487846
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=487846#c9 Miguel de Icaza <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #9 from Miguel de Icaza <[email protected]> 2009-06-19 07:36:46 MDT --- Steve, To detect the number of CPUs available on the system on Linux, you can use: #include <unistd.h> sysconf (_SC_NPROCESSORS_ONLN); That returns the number of processors, if the value -1 is returned, it means that the _SC_NPROCESSORS_ONLN query is not supported in that operating system/kernel combination (should be supported for Linux as far as the eye can see though). But if you get -1, then another operating system specific hack can be used. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
