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

C / C++ / MFC

 
GeneralRe: Using MSDN from .NET with MSVC6 Pin
Michael P Butler18-Aug-02 8:11
Michael P Butler18-Aug-02 8:11 
GeneralDebug Assertion in Debug DLL (not Release) Pin
User 665818-Aug-02 3:45
User 665818-Aug-02 3:45 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
User 665818-Aug-02 4:11
User 665818-Aug-02 4:11 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
Chris Losinger18-Aug-02 17:34
professionalChris Losinger18-Aug-02 17:34 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
Mustafa Demirhan19-Aug-02 13:51
Mustafa Demirhan19-Aug-02 13:51 
GeneralProblem with monitoring threads !!! Pin
tongc18-Aug-02 3:41
tongc18-Aug-02 3:41 
GeneralRe: Problem with monitoring threads !!! Pin
valikac18-Aug-02 9:41
valikac18-Aug-02 9:41 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann18-Aug-02 10:34
Daniel Lohmann18-Aug-02 10:34 
So you moved from processes to threads now? Big Grin | :-D

I am not sure if I really understood your question (what do you mean with "thread x display only y times?). Therefore it may be that I completly lost your point.

However, thread execution is not a deterministic thing. Depending on other ready-to-schedule thread it may be, that your 5000 msec thread is started after the 25000 msec thread. On a machine with more than one CPU they may be started at really the same time. Besides timing with Sleep, WaitForXXX and so on is not completly precise, standard timer resolution is about 10 msec on NT and about 50 msec on Win9x. This means your 5000 msec thread might sleep just 4990 msec.

Long story, short message: A threads execution time is not reliable and it is just bad design to relay on it.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: Problem with monitoring threads !!! Pin
tongc18-Aug-02 16:41
tongc18-Aug-02 16:41 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann19-Aug-02 1:12
Daniel Lohmann19-Aug-02 1:12 
GeneralRe: Problem with monitoring threads !!! Pin
tongc20-Aug-02 5:19
tongc20-Aug-02 5:19 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann20-Aug-02 8:32
Daniel Lohmann20-Aug-02 8:32 
GeneralRe: Problem with monitoring threads !!! Pin
Mustafa Demirhan19-Aug-02 13:56
Mustafa Demirhan19-Aug-02 13:56 
GeneralHot/mouseover Pin
DanYELL18-Aug-02 3:33
DanYELL18-Aug-02 3:33 
Questionexcepting a flag???? Pin
Eric Cashwell18-Aug-02 2:39
Eric Cashwell18-Aug-02 2:39 
AnswerRe: excepting a flag???? Pin
tongc18-Aug-02 3:09
tongc18-Aug-02 3:09 
GeneralRe: excepting a flag???? Pin
Eric Cashwell18-Aug-02 3:15
Eric Cashwell18-Aug-02 3:15 
GeneralRe: excepting a flag???? Pin
Eric Cashwell18-Aug-02 4:25
Eric Cashwell18-Aug-02 4:25 
GeneralEasy question (hopefully) Pin
Jh318-Aug-02 2:17
Jh318-Aug-02 2:17 
GeneralRe: Easy question (hopefully) Pin
Stephane Rodriguez.18-Aug-02 2:26
Stephane Rodriguez.18-Aug-02 2:26 
GeneralRe: Easy question (hopefully) Pin
tongc18-Aug-02 3:44
tongc18-Aug-02 3:44 
GeneralAppendChunk question - simple probably Pin
nss17-Aug-02 23:28
nss17-Aug-02 23:28 
GeneralRe: AppendChunk question - simple probably Pin
Joel Lucsy19-Aug-02 3:49
Joel Lucsy19-Aug-02 3:49 
GeneralHelp button and propertysheet Pin
Mazdak17-Aug-02 21:37
Mazdak17-Aug-02 21:37 
GeneralRe: Help button and propertysheet Pin
Shog917-Aug-02 22:24
sitebuilderShog917-Aug-02 22:24 

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.