From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ddf3891c0469bb9f X-Google-Attributes: gid103376,public From: Gerald Kasner Subject: Re: Task management Date: 1999/06/17 Message-ID: <3768F4D8.175F5062@Physik.Uni-Magdeburg.DE>#1/1 X-Deja-AN: 490656382 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii X-Trace: 17 Jun 1999 15:13:24 +0100, loriot.cs.uni-magdeburg.de Organization: Uni Magdeburg MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-17T00:00:00+00:00 List-Id: Decker, Christian R wrote: > > If you are on an NT station ( I assume NT windows cuz win95 doesn't support > multi-cpu's ) then > the system call GetSystemInfo will return a C struct filled with all the > goodies. > the struct is defined as: ( winbase.h , kernel32.lib ) > > typedef struct _SYSTEM_INFO { // sinf > union { > DWORD dwOemId; > struct { > WORD wProcessorArchitecture; > WORD wReserved; > }; > }; > DWORD dwPageSize; > LPVOID lpMinimumApplicationAddress; > LPVOID lpMaximumApplicationAddress; > DWORD dwActiveProcessorMask; > DWORD dwNumberOfProcessors; > DWORD dwProcessorType; > DWORD dwAllocationGranularity; > WORD wProcessorLevel; > WORD wProcessorRevision; > } SYSTEM_INFO > > On a Unix Box I don't know the call, but i am sure it exists. > Linux : in smp.h extern int smp_num_cpus is defined Gerald