comp.lang.ada
 help / color / mirror / Atom feed
From: Gerald Kasner <Gerald.Kasner@Physik.Uni-Magdeburg.DE>
Subject: Re: Task management
Date: 1999/06/17
Date: 1999-06-17T00:00:00+00:00	[thread overview]
Message-ID: <3768F4D8.175F5062@Physik.Uni-Magdeburg.DE> (raw)
In-Reply-To: Ph4a3.702$e9.258186@WReNphoon3

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




  reply	other threads:[~1999-06-17  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-17  0:00 Task management Dale Stanbrough
1999-06-17  0:00 ` Decker, Christian R
1999-06-17  0:00   ` Gerald Kasner [this message]
1999-06-17  0:00 ` Larry Kilgallen
  -- strict thread matches above, loose matches on Subject: below --
2005-12-28 11:27 Task Management The One Who Rages
2005-12-28 12:28 ` Dmitry A. Kazakov
2005-12-28 12:55   ` Martin Dowie
2005-12-28 12:33 ` Stephen Leake
2005-12-28 13:22 ` The One Who Rages
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox