comp.lang.ada
 help / color / mirror / Atom feed
From: cdecker@snet.net (Decker, Christian R)
Subject: Task management
Date: 1999/06/17
Date: 1999-06-17T00:00:00+00:00	[thread overview]
Message-ID: <Ph4a3.702$e9.258186@WReNphoon3> (raw)
In-Reply-To: dale-1706991329100001@dale.cs.rmit.edu.au

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.



   -**** Posted from RemarQ, http://www.remarq.com/?a ****-
 Search and Read Usenet Discussions in your Browser - FREE -




  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 [this message]
1999-06-17  0:00   ` Gerald Kasner
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