Click here to Skip to main content
14,604,286 members

C / C++ / MFC

 
AnswerRe: What should constructor do? Pin
Albert Holguin28-Jan-16 5:26
professionalAlbert Holguin28-Jan-16 5:26 
QuestionEnable/Disable Ribbon Menu Item Dynamically Pin
rajmohan 12326-Jan-16 23:13
Memberrajmohan 12326-Jan-16 23:13 
AnswerRe: Enable/Disable Ribbon Menu Item Dynamically Pin
Jochen Arndt27-Jan-16 1:49
professionalJochen Arndt27-Jan-16 1:49 
GeneralRe: Enable/Disable Ribbon Menu Item Dynamically Pin
rajmohan 12327-Jan-16 21:14
Memberrajmohan 12327-Jan-16 21:14 
GeneralRe: Enable/Disable Ribbon Menu Item Dynamically Pin
Jochen Arndt27-Jan-16 21:35
professionalJochen Arndt27-Jan-16 21:35 
QuestionInterview Test Question Pin
Richard Andrew x6426-Jan-16 13:18
professionalRichard Andrew x6426-Jan-16 13:18 
AnswerRe: Interview Test Question Pin
David Crow27-Jan-16 4:22
MemberDavid Crow27-Jan-16 4:22 
AnswerRe: Interview Test Question Pin
Albert Holguin28-Jan-16 5:13
professionalAlbert Holguin28-Jan-16 5:13 
I would think that in general, mutexes are purely kernel controlled objects whereas critical sections are mostly "user mode primitives", meaning it's application level logic most of the time (which runs a lot faster without requiring the kernel to be involved). Of course, this also implies a critical section is bound within a process and cannot be shared across processes. The exception is when there actually is a conflict, then a critical section makes a kernel call for synchronization.

If you write some test code, you should be able to notice the speed advantage of a critical section (and all the kernel system calls of a mutex).
QuestionWin32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris26-Jan-16 12:49
MemberFrederick J. Harris26-Jan-16 12:49 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris26-Jan-16 13:30
MemberFrederick J. Harris26-Jan-16 13:30 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris26-Jan-16 17:18
MemberFrederick J. Harris26-Jan-16 17:18 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt26-Jan-16 21:47
professionalJochen Arndt26-Jan-16 21:47 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris27-Jan-16 10:01
MemberFrederick J. Harris27-Jan-16 10:01 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt27-Jan-16 21:26
professionalJochen Arndt27-Jan-16 21:26 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris28-Jan-16 4:22
MemberFrederick J. Harris28-Jan-16 4:22 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt28-Jan-16 4:45
professionalJochen Arndt28-Jan-16 4:45 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris29-Jan-16 5:10
MemberFrederick J. Harris29-Jan-16 5:10 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt29-Jan-16 5:34
professionalJochen Arndt29-Jan-16 5:34 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Richard MacCutchan26-Jan-16 22:27
mveRichard MacCutchan26-Jan-16 22:27 
QuestionC, Win32 API: l need help with tab control [Solved] Pin
Member 1213944226-Jan-16 11:20
MemberMember 1213944226-Jan-16 11:20 
AnswerRe: C, Win32 API: l need help with tab control Pin
bling26-Jan-16 12:03
Memberbling26-Jan-16 12:03 
GeneralRe: C, Win32 API: l need help with tab control Pin
Member 1213944226-Jan-16 21:07
MemberMember 1213944226-Jan-16 21:07 
GeneralRe: C, Win32 API: l need help with tab control Pin
bling27-Jan-16 14:15
Memberbling27-Jan-16 14:15 
AnswerRe: C, Win32 API: l need help with tab control Pin
Richard MacCutchan26-Jan-16 22:34
mveRichard MacCutchan26-Jan-16 22:34 
QuestionRe: C, Win32 API: l need help with tab control Pin
David Crow27-Jan-16 4:27
MemberDavid Crow27-Jan-16 4: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.