winapi - Efficient Win32 Kernel Objects to be preferred over c++ -


as c++ programmer try stick standard , if that's not possible try use boost or other portable lib. in all, write portable code. now, windows sdk give access kernel objects lead faster code part of optimization. know kernel objects use efficiency?

one example critical_section 1 believe default choice mutex on windows when using boost::threads or c++11 concurrency. sticking intra-process concurrency, of course.

let's leave out gui programming now. qt enough.

generally kernel objects not going more efficient. take more ram , using them requires expensive context switch.

critical sections hybrids, try stay in user-mode , create kernel-mode semaphore if absolutely needed.

your c++ standard library loosely wrapping whatever efficient method platform is. benchmark first.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -