From owner-freebsd-smp Sat Feb 27 13:37:59 1999 Delivered-To: freebsd-smp@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id 7F44315156 for ; Sat, 27 Feb 1999 13:37:34 -0800 (PST) (envelope-from tlambert@usr09.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id OAA10453; Sat, 27 Feb 1999 14:37:17 -0700 (MST) Received: from usr09.primenet.com(206.165.6.209) via SMTP by smtp02.primenet.com, id smtpd010433; Sat Feb 27 14:37:11 1999 Received: (from tlambert@localhost) by usr09.primenet.com (8.8.5/8.8.5) id OAA16255; Sat, 27 Feb 1999 14:37:09 -0700 (MST) From: Terry Lambert Message-Id: <199902272137.OAA16255@usr09.primenet.com> Subject: Re: Determining the number of processors? To: mturpin@saturn.spel.com (Mark Turpin) Date: Sat, 27 Feb 1999 21:37:02 +0000 (GMT) Cc: smp@FreeBSD.ORG In-Reply-To: from "Mark Turpin" at Feb 27, 99 04:27:39 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Is there any way, in a program, to find out how many processors > a machine has? man 3 sysctlbyname You are looking for the oid "hw.ncpu". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message