Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Know when a child popup dialog is opened Pin
Jochen Arndt12-Dec-16 2:06
professionalJochen Arndt12-Dec-16 2:06 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu13-Dec-16 0:08
_Flaviu13-Dec-16 0:08 
GeneralRe: Know when a child popup dialog is opened Pin
Jochen Arndt13-Dec-16 0:25
professionalJochen Arndt13-Dec-16 0:25 
QuestionRe: Know when a child popup dialog is opened Pin
David Crow12-Dec-16 3:15
David Crow12-Dec-16 3:15 
AnswerRe: Know when a child popup dialog is opened Pin
_Flaviu12-Dec-16 5:24
_Flaviu12-Dec-16 5:24 
GeneralRe: Know when a child popup dialog is opened Pin
Victor Nijegorodov12-Dec-16 7:46
Victor Nijegorodov12-Dec-16 7:46 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu12-Dec-16 23:48
_Flaviu12-Dec-16 23:48 
AnswerRe: Know when a child popup dialog is opened Pin
leon de boer13-Dec-16 16:47
leon de boer13-Dec-16 16:47 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu15-Dec-16 23:24
_Flaviu15-Dec-16 23:24 
QuestionProper declaration of array with volatile values inside it? Pin
arnold_w7-Dec-16 3:30
arnold_w7-Dec-16 3:30 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
Jochen Arndt7-Dec-16 4:22
professionalJochen Arndt7-Dec-16 4:22 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
leon de boer7-Dec-16 6:39
leon de boer7-Dec-16 6:39 
QuestionTree Ctrl Object Selection Pin
raajpatel4-Dec-16 20:57
raajpatel4-Dec-16 20:57 
GeneralRe: Tree Ctrl Object Selection Pin
Richard MacCutchan4-Dec-16 21:16
mveRichard MacCutchan4-Dec-16 21:16 
GeneralRe: Tree Ctrl Object Selection Pin
raajpatel5-Dec-16 1:20
raajpatel5-Dec-16 1:20 
GeneralRe: Tree Ctrl Object Selection Pin
Peter_in_27805-Dec-16 1:36
professionalPeter_in_27805-Dec-16 1:36 
QuestionMutex WaitForSingleObject does not Signal Pin
ForNow1-Dec-16 13:14
ForNow1-Dec-16 13:14 
AnswerRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan1-Dec-16 21:39
mveRichard MacCutchan1-Dec-16 21:39 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow2-Dec-16 2:25
ForNow2-Dec-16 2:25 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan2-Dec-16 3:01
mveRichard MacCutchan2-Dec-16 3:01 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow10-Dec-16 15:12
ForNow10-Dec-16 15:12 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan10-Dec-16 20:46
mveRichard MacCutchan10-Dec-16 20:46 
AnswerRe: Mutex WaitForSingleObject does not Signal Pin
Munchies_Matt9-Dec-16 2:52
Munchies_Matt9-Dec-16 2:52 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow10-Dec-16 15:07
ForNow10-Dec-16 15:07 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Munchies_Matt10-Dec-16 21:01
Munchies_Matt10-Dec-16 21:01 
ForNow wrote:
do threads 2 - 4 waits

Yes.


ForNow wrote:
When the ReleaseMutex are all released or only one at a time


It depends on the scheduler. Thread scheduling is a very interesting topic in OS design, and the rules can vary from platform. But a general rule is that the waiting thread with the highest priority runs. However some OSs throw in a bit of priority inversion on occasion to free up any deadlocks.

Within the same priority group you might decide on say, 'last thread run', or 'first thread waiting' to decide which to activate and give the CPU to. A bit like FIFO, LRU LIFO etc, there are a lot of designs.

The important point though is that the OS does this for you so no need to worry about it. Use the example from Microsoft and all will be well.

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.