Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionesy way to send email in win32 application Pin
sepel3-May-07 21:57
sepel3-May-07 21:57 
AnswerRe: esy way to send email in win32 application Pin
Roger Stoltz3-May-07 22:30
Roger Stoltz3-May-07 22:30 
GeneralRe: esy way to send email in win32 application Pin
sepel4-May-07 1:48
sepel4-May-07 1:48 
AnswerRe: esy way to send email in win32 application Pin
David Crow4-May-07 2:45
David Crow4-May-07 2:45 
QuestionCompile EVC++ 4.0 from command line [modified] Pin
pri_skit3-May-07 21:41
pri_skit3-May-07 21:41 
QuestionSplitDialogTemplate() difference between VC6 and VC2005 Options Pin
RaymondYounan3-May-07 20:54
RaymondYounan3-May-07 20:54 
QuestionNeed little help in Worker threads [modified] Pin
amitmistry_petlad 3-May-07 20:36
amitmistry_petlad 3-May-07 20:36 
AnswerRe: Need little help in Worker threads Pin
Chilli714-May-07 0:52
Chilli714-May-07 0:52 
Hi!

The threads are all created in the loop.
However they are created in a suspended state. The scheduler of the operating sytem will activate them (put them in running state) according to their priority and overall system load.
Usually this will be in the order you create the threads.

In prinzipal using a static (global) variable as a thread counter is a good idea.
But I strongly recommend to put the access to this variable into a critical section just for the case that the read and write operation (and whatever you will add in future) is not atomic.

Since the worker threads are identical clones it does not matter if the creation sequence would deviate from the sequence the threads start. However, if you want to know the creation sequence in the thread, you can just pass your loop index i as parameter.

kind regards
Leo
GeneralRe: Need little help in Worker threads Pin
amitmistry_petlad 4-May-07 1:03
amitmistry_petlad 4-May-07 1:03 
GeneralRe: Need little help in Worker threads Pin
Chilli714-May-07 4:17
Chilli714-May-07 4:17 
AnswerRe: Need little help in Worker threads Pin
Roger Stoltz4-May-07 1:29
Roger Stoltz4-May-07 1:29 
GeneralRe: Need little help in Worker threads Pin
amitmistry_petlad 4-May-07 1:38
amitmistry_petlad 4-May-07 1:38 
QuestionFinger print sensor with mfc Pin
deeps_cute3-May-07 20:13
deeps_cute3-May-07 20:13 
JokeRe: Finger print sensor with mfc Pin
Rajesh R Subramanian3-May-07 20:30
professionalRajesh R Subramanian3-May-07 20:30 
GeneralRe: Finger print sensor with mfc Pin
deeps_cute3-May-07 20:55
deeps_cute3-May-07 20:55 
QuestionRe: Finger print sensor with mfc Pin
Rajesh R Subramanian3-May-07 21:06
professionalRajesh R Subramanian3-May-07 21:06 
AnswerRe: Finger print sensor with mfc Pin
deeps_cute3-May-07 21:27
deeps_cute3-May-07 21:27 
QuestionRe: Finger print sensor with mfc Pin
Rajesh R Subramanian3-May-07 21:41
professionalRajesh R Subramanian3-May-07 21:41 
AnswerRe: Finger print sensor with mfc Pin
Rajesh R Subramanian3-May-07 21:57
professionalRajesh R Subramanian3-May-07 21:57 
GeneralRe: Finger print sensor with mfc Pin
deeps_cute4-May-07 0:22
deeps_cute4-May-07 0:22 
GeneralRe: Finger print sensor with mfc Pin
Rajesh R Subramanian4-May-07 1:33
professionalRajesh R Subramanian4-May-07 1:33 
GeneralRe: Finger print sensor with mfc Pin
Mark Salsbery4-May-07 6:32
Mark Salsbery4-May-07 6:32 
GeneralRe: Finger print sensor with mfc Pin
Rajesh R Subramanian4-May-07 21:09
professionalRajesh R Subramanian4-May-07 21:09 
GeneralRe: Finger print sensor with mfc Pin
Mark Salsbery5-May-07 5:54
Mark Salsbery5-May-07 5:54 
AnswerRe: Finger print sensor with mfc Pin
p_3-May-07 22:09
p_3-May-07 22:09 

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.