Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Problem with monitoring threads !!! Pin
tongc18-Aug-02 16:41
tongc18-Aug-02 16:41 
Hi Daniel! It's good hear from u!

Sorry, i was abit rush last night! But here is the requirment

<quote>
write a Win32 Console application that starts five threads, passing each a parameter which is the number of milliseconds that this thread is to simulate execution. The parameter must have a different value for each thread invocation, and should be in the range 20 to 40 seconds. You may predetermine these values, or determine them randomly. Your main thread should monitor these threads, outputting a digit every second indicating how many threads are still running. Your program should terminate after all five new threads have terminated.


I basically have done all of this but the result is as i explained above. Where as the first thread should run for 5 second it only run in 4, however other threads are running ok.

Do you notice any bugs or logical error??

Thanks in advance !!! Smile | :)
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 
GeneralRe: Help button and propertysheet Pin
Mazdak18-Aug-02 3:49
Mazdak18-Aug-02 3:49 

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.