Click here to Skip to main content
14,696,150 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What should constructor do? Pin
Albert Holguin28-Jan-16 6:26
professionalAlbert Holguin28-Jan-16 6:26 
QuestionEnable/Disable Ribbon Menu Item Dynamically Pin
rajmohan 12327-Jan-16 0:13
Memberrajmohan 12327-Jan-16 0:13 
AnswerRe: Enable/Disable Ribbon Menu Item Dynamically Pin
Jochen Arndt27-Jan-16 2:49
professionalJochen Arndt27-Jan-16 2:49 
GeneralRe: Enable/Disable Ribbon Menu Item Dynamically Pin
rajmohan 12327-Jan-16 22:14
Memberrajmohan 12327-Jan-16 22:14 
GeneralRe: Enable/Disable Ribbon Menu Item Dynamically Pin
Jochen Arndt27-Jan-16 22:35
professionalJochen Arndt27-Jan-16 22:35 
QuestionInterview Test Question Pin
Richard Andrew x6426-Jan-16 14:18
professionalRichard Andrew x6426-Jan-16 14:18 
AnswerRe: Interview Test Question Pin
David Crow27-Jan-16 5:22
MemberDavid Crow27-Jan-16 5:22 
AnswerRe: Interview Test Question Pin
Albert Holguin28-Jan-16 6:13
professionalAlbert Holguin28-Jan-16 6: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 13:49
MemberFrederick J. Harris26-Jan-16 13:49 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris26-Jan-16 14:30
MemberFrederick J. Harris26-Jan-16 14:30 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris26-Jan-16 18:18
MemberFrederick J. Harris26-Jan-16 18:18 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt26-Jan-16 22:47
professionalJochen Arndt26-Jan-16 22:47 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris27-Jan-16 11:01
MemberFrederick J. Harris27-Jan-16 11:01 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt27-Jan-16 22:26
professionalJochen Arndt27-Jan-16 22:26 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris28-Jan-16 5:22
MemberFrederick J. Harris28-Jan-16 5:22 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt28-Jan-16 5:45
professionalJochen Arndt28-Jan-16 5:45 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Frederick J. Harris29-Jan-16 6:10
MemberFrederick J. Harris29-Jan-16 6:10 
GeneralRe: Win32 Function To Convert Floating Point Number To Character String Pin
Jochen Arndt29-Jan-16 6:34
professionalJochen Arndt29-Jan-16 6:34 
AnswerRe: Win32 Function To Convert Floating Point Number To Character String Pin
Richard MacCutchan26-Jan-16 23:27
mveRichard MacCutchan26-Jan-16 23:27 
QuestionC, Win32 API: l need help with tab control [Solved] Pin
Member 1213944226-Jan-16 12:20
MemberMember 1213944226-Jan-16 12:20 
AnswerRe: C, Win32 API: l need help with tab control Pin
bling26-Jan-16 13:03
Memberbling26-Jan-16 13:03 
GeneralRe: C, Win32 API: l need help with tab control Pin
Member 1213944226-Jan-16 22:07
MemberMember 1213944226-Jan-16 22:07 
GeneralRe: C, Win32 API: l need help with tab control Pin
bling27-Jan-16 15:15
Memberbling27-Jan-16 15:15 
AnswerRe: C, Win32 API: l need help with tab control Pin
Richard MacCutchan26-Jan-16 23:34
mveRichard MacCutchan26-Jan-16 23:34 
QuestionRe: C, Win32 API: l need help with tab control Pin
David Crow27-Jan-16 5:27
MemberDavid Crow27-Jan-16 5: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.