//set up lockmanager records - if newLock use the implementation with new lock per iteration
BasicLockRecord[] mLockRecordList = _newLock ? new BasicLockRecord[mNumberOfResources] : new BasicLockRecord2[mNumberOfResources];
int expectedValue[] = new int[mNumberOfResources];
for (int i = 0; i < mNumberOfResources; i++)
{
mLockRecordList[i] = _newLock ? new BasicLockRecord() : new BasicLockRecord2();
expectedValue[i] = 0;
}
Worker001[] mWorkers = new Worker001[mNumberOfWorkers];
for (int i = 0; i < mNumberOfWorkers; i++)