Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery19-Sep-07 4:54
Mark Salsbery19-Sep-07 4:54 
Questionhow to Convert unsigned char to UTF-8,Unicode? Pin
kcynic15-Sep-07 16:47
kcynic15-Sep-07 16:47 
AnswerRe: how to Convert unsigned char to UTF-8,Unicode? Pin
Nemanja Trifunovic16-Sep-07 1:27
Nemanja Trifunovic16-Sep-07 1:27 
GeneralRe: how to Convert unsigned char to UTF-8,Unicode? Pin
kcynic16-Sep-07 15:30
kcynic16-Sep-07 15:30 
QuestionFunny timing results in threading project Pin
Cyrilix15-Sep-07 10:27
Cyrilix15-Sep-07 10:27 
AnswerRe: Funny timing results in threading project Pin
carrivick15-Sep-07 20:51
carrivick15-Sep-07 20:51 
GeneralRe: Funny timing results in threading project Pin
Cyrilix16-Sep-07 7:07
Cyrilix16-Sep-07 7:07 
AnswerRe: Funny timing results in threading project Pin
Randor 16-Sep-07 6:07
professional Randor 16-Sep-07 6:07 
Hi,

I believe when a thread does not have any sychronization objects associated with it, the OS kernel will yield and pre-empt the thread in a semi-random way, based on a priority-driven, preemptive scheduling algorithm. However once a thread has created a synchronization object the OS kernel begins to internally use this object as a reference point for yeilding process time. So by simply having created a synchronization object within a thread, the quantum timeslices should indeed become more uniform.

http://msdn2.microsoft.com/en-us/library/ms686364.aspx[^]

Maybe when your application is opening STD_INPUT_HANDLE or STD_OUTPUT_HANDLE an internal synchronization object is being created and causing the uniform quantum slices. This is just purely a guess.

It should also be noted that when using QueryPerformanceCounter on a multiprocessor computer that in order to retrieve the most accurate timestamp you should set the threads affinity mask to a single processor using SetThreadAffinityMask.

Best Wishes,
-Randor (David Delaune)
GeneralRe: Funny timing results in threading project Pin
Cyrilix16-Sep-07 7:05
Cyrilix16-Sep-07 7:05 
QuestionHow export functions from an exe file? Pin
Hongjun Ge15-Sep-07 7:18
Hongjun Ge15-Sep-07 7:18 
AnswerRe: How export functions from an exe file? Pin
Chris Losinger15-Sep-07 7:23
professionalChris Losinger15-Sep-07 7:23 
GeneralRe: How export functions from an exe file? Pin
Nemanja Trifunovic15-Sep-07 12:29
Nemanja Trifunovic15-Sep-07 12:29 
GeneralRe: How export functions from an exe file? Pin
Chris Losinger15-Sep-07 13:17
professionalChris Losinger15-Sep-07 13:17 
GeneralRe: How export functions from an exe file? Pin
Eytukan15-Sep-07 17:34
Eytukan15-Sep-07 17:34 
GeneralRe: How export functions from an exe file? Pin
Hongjun Ge16-Sep-07 2:24
Hongjun Ge16-Sep-07 2:24 
AnswerRe: How export functions from an exe file? Pin
Eytukan15-Sep-07 17:49
Eytukan15-Sep-07 17:49 
GeneralRe: How export functions from an exe file? Pin
glitteringsound18-Mar-10 10:16
glitteringsound18-Mar-10 10:16 
JokeRe: How export functions from an exe file? Pin
Rama Krishna Vavilala20-Mar-10 7:48
Rama Krishna Vavilala20-Mar-10 7:48 
QuestionToolbar with two columns how Pin
sharp_k15-Sep-07 5:35
sharp_k15-Sep-07 5:35 
AnswerRe: Toolbar with two columns how Pin
Mark Salsbery16-Sep-07 8:27
Mark Salsbery16-Sep-07 8:27 
GeneralRe: Toolbar with two columns how Pin
sharp_k17-Sep-07 12:21
sharp_k17-Sep-07 12:21 
QuestionWinMain and argv/argc Pin
dellthinker15-Sep-07 5:29
dellthinker15-Sep-07 5:29 
QuestionRe: WinMain and argv/argc Pin
David Crow15-Sep-07 11:49
David Crow15-Sep-07 11:49 
AnswerRe: WinMain and argv/argc Pin
dellthinker15-Sep-07 13:32
dellthinker15-Sep-07 13:32 
GeneralRe: WinMain and argv/argc Pin
David Crow15-Sep-07 17:27
David Crow15-Sep-07 17:27 

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.