CRITICAL SECTION AND MUTEX
-
where to use critical section and where to use mutex .. wat is best pratices ..to use this syncronisation elements .
-
where to use critical section and where to use mutex .. wat is best pratices ..to use this syncronisation elements .
I think you read this section to know which to use at what time[^]
Величие не Бога может быть недооценена.
-
where to use critical section and where to use mutex .. wat is best pratices ..to use this syncronisation elements .
For thread synchronization between threads in the same process you should use critical sections as they are faster since they don't have a kernel object associated with them. For synchronization between processes, e.g. when accessing system resources, you have to use mutexes. Mutexes will work in either case. You will find some interesting reading here[^] and here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
where to use critical section and where to use mutex .. wat is best pratices ..to use this syncronisation elements .