Click here to Skip to main content
16,020,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Where is my form, and what is it? Pin
Chandrasekharan P24-Nov-08 17:15
Chandrasekharan P24-Nov-08 17:15 
NewsGood news, Freeborders are search for some Sr.C++ Engineer Pin
pandapam24-Nov-08 15:33
pandapam24-Nov-08 15:33 
GeneralRe: Good news, Freeborders are search for some Sr.C++ Engineer Pin
Sophia_meng24-Nov-08 15:44
Sophia_meng24-Nov-08 15:44 
GeneralRe: Good news, Freeborders are search for some Sr.C++ Engineer Pin
Chandrasekharan P24-Nov-08 17:43
Chandrasekharan P24-Nov-08 17:43 
QuestionBasic C++ question Pin
Software200724-Nov-08 14:29
Software200724-Nov-08 14:29 
AnswerRe: Basic C++ question Pin
enhzflep24-Nov-08 16:16
enhzflep24-Nov-08 16:16 
GeneralRe: Basic C++ question Pin
Software200724-Nov-08 16:31
Software200724-Nov-08 16:31 
GeneralRe: Basic C++ question Pin
enhzflep24-Nov-08 17:30
enhzflep24-Nov-08 17:30 
From the articles I'm reading, it seems that this should be reasonably easy to determine.

Quoting from Description of Performance Options in Windows[^],
The term "quantum" is a unitless measure of time for each time slice that a thread will run until a "context switch" occurs and another thread (either within the same program or from within another program) is selected to run. This prevents a CPU-bound process from monopolizing the processor. Currently in Windows, 3 quantums are equal to either 10 milliseconds (single processor) or 15 milliseconds (multiple-processor Pentium). This depends on the hardware abstraction layer (HAL) selected for your computer. Original Equipment Manufacturer (OEM) HALs may have a different value. Time slices that are fixed at 36 quantums are currently used when background services are selected (as you might choose in a typical server installation).

The situation become more complex when you enable the Foreground Applications option. This introduces the "variable quantum" concept. In this case, background tasks receive a different quantum than the quantums received by the foreground tasks. Also, both sets of quantums are shorter than a thread would receive on a computer set for background services. Currently, a background process receives a quantum of 3 and a foreground process receives a quantum of 9. Therefore, you can calculate the length of time the thread will run before its timer expires.



Soooo, it seems that all you have to do is determine if the running system contains a single processor, or multiple processors.

If you open up regedit, and take a look at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion, there is a key called CurrentType
On my Celeron D 2.66 Ghz, this has the value "Uniprocessor Free".
On my Pentium D 3.4 Ghz, this same key has the value "Multiprocessor Free"

Perhaps it really is as simple as that??! (hope so Smile | :) )
Simon.
GeneralRe: Basic C++ question Pin
Software200724-Nov-08 17:58
Software200724-Nov-08 17:58 
GeneralRe: Basic C++ question Pin
enhzflep24-Nov-08 19:12
enhzflep24-Nov-08 19:12 
GeneralRe: Basic C++ question Pin
David Crow25-Nov-08 5:03
David Crow25-Nov-08 5:03 
GeneralRe: Basic C++ question Pin
Software200725-Nov-08 6:03
Software200725-Nov-08 6:03 
QuestionHelp about Dev C++ Pin
asdxxx24-Nov-08 12:40
asdxxx24-Nov-08 12:40 
AnswerRe: Help about Dev C++ Pin
enhzflep24-Nov-08 13:00
enhzflep24-Nov-08 13:00 
QuestionCreateFile() error Pin
iNoble24-Nov-08 8:09
iNoble24-Nov-08 8:09 
QuestionRe: CreateFile() error Pin
led mike24-Nov-08 9:20
led mike24-Nov-08 9:20 
GeneralRe: CreateFile() error [modified] Pin
iNoble24-Nov-08 9:23
iNoble24-Nov-08 9:23 
GeneralRe: CreateFile() error Pin
led mike24-Nov-08 9:55
led mike24-Nov-08 9:55 
QuestionRe: CreateFile() error Pin
David Crow24-Nov-08 17:38
David Crow24-Nov-08 17:38 
AnswerRe: CreateFile() error Pin
iNoble25-Nov-08 2:46
iNoble25-Nov-08 2:46 
QuestionMs embedded vc on pocket pc Pin
mousemicky24-Nov-08 7:38
mousemicky24-Nov-08 7:38 
AnswerRe: Ms embedded vc on pocket pc Pin
CPallini24-Nov-08 7:52
mveCPallini24-Nov-08 7:52 
QuestionUsing GDI+ to display static pictures in MFC dialogs with an alpha channel Pin
Sternocera24-Nov-08 6:34
Sternocera24-Nov-08 6:34 
QuestionRe: Using GDI+ to display static pictures in MFC dialogs with an alpha channel Pin
Mark Salsbery24-Nov-08 7:41
Mark Salsbery24-Nov-08 7:41 
AnswerRe: Using GDI+ to display static pictures in MFC dialogs with an alpha channel Pin
Sternocera24-Nov-08 7:43
Sternocera24-Nov-08 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.