From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dr. David Kirkby" Newsgroups: gmane.os.tru64.managers Subject: Can I determine the number of cpus via system call? Date: Tue, 03 Jun 2003 19:04:06 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3EDCE316.21872CF1@ntlworld.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054663330 11792 80.91.224.249 (3 Jun 2003 18:02:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 18:02:10 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jun 03 20:02:08 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19NG6q-00033y-00 for ; Tue, 03 Jun 2003 20:02:08 +0200 Original-Received: (qmail 31698 invoked by uid 5); 3 Jun 2003 18:04:18 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31688 invoked by uid 49493); 3 Jun 2003 18:04:17 -0000 Original-Received: from drkirkby@ntlworld.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.715351 secs); 03 Jun 2003 18:04:17 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 3 Jun 2003 18:04:16 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HFX008QW3J1YS@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 03 Jun 2003 14:04:15 -0400 (EDT) Original-Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HFX007LK3IXYA@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 03 Jun 2003 14:04:11 -0400 (EDT) Original-Received: from ntlworld.com ([62.255.37.65]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030603180408.SBRN12018.mta06-svc.ntlworld.com@ntlworld.com> for ; Tue, 03 Jun 2003 19:04:08 +0100 Original-To: "tru64-unix-managers@ornl.gov" X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:4415 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4415 Is there a system call that will allow one to determine the number of active cpus? In Solaris is there a system call 'processor_info', which will tell you if a particular processor ID is online or off-line, and if online some information about it. I'd like to try to get similar information from within a C program under Tru64. -- Dr. David Kirkby, Senior Research Fellow, Department of Medical Physics, University College London, 11-20 Capper St, London, WC1E 6JA. Tel: 020 7679 6408 Fax: 020 7679 6269 Internal telephone: ext 46408 e-mail davek@medphys.ucl.ac.uk