critical-section

critical section problem in Windows 7

Why does the code sample below cause one thread to execute way more than another but a mutex does not? #include <windows.h> #include <conio.h> #include <process.h> #include <iostream> using namespace std; typedef struct _THREAD_INFO_ { COORD coord; // a structure containing x and y coordinates INT threadNumber; // eac...