#include #include #include using namespace std; int finished=0; const int ThreadNumber=10; const int MaxNumber=100; HANDLE myMutex; vector myVector; DWORD WINAPI ThreadProc(void* lpParameter) { int id=*(int*)(lpParameter); int counter=0; while (counter