public virtual bool runTest()
{
const Byte numberOfThreads = 200;
Console.Error.WriteLine(s_strTFPath + " " + s_strTFName + " , for " + s_strClassMethod);
int iCountErrors = 0;
int iCountTestcases = 0;
String strLoc = "Loc_000oo";
ThreadStart tdst1;
Thread[] thdPool;
randomNumGen = new Random();
try {
strLoc = "Loc_001";
iCountTestcases++;
thdPool = new Thread[numberOfThreads];
for(int i=0; i<numberOfThreads; i++){
tdst1 = new ThreadStart(this.WorkOnInstanceAndLocal);
thdPool[i] = new Thread(tdst1);
}
for(int i=0; i<numberOfThreads; i++)
thdPool[i].Start();
for(int i=0; i<numberOfThreads; i++)
thdPool[i].Join();
strLoc = "Loc_003df";
iCountTestcases++;
thdPool = new Thread[numberOfThreads];
for(int i=0; i<numberOfThreads; i++){
tdst1 = new ThreadStart(Co8551Byte.WorkOnStatic);
thdPool[i] = new Thread(tdst1);
}
for(int i=0; i<numberOfThreads; i++)
thdPool[i].Start();
for(int i=0; i<numberOfThreads; i++)
thdPool[i].Join();
} catch (Exception exc_general ) {
++iCountErrors;
Console.WriteLine(s_strTFAbbrev +" Error Err_8888yyy! strLoc=="+ strLoc +", exc_general=="+exc_general);
}
if ( iCountErrors == 0 ){
Console.Error.WriteLine( "paSs. "+s_strTFPath +" "+s_strTFName+" ,iCountTestcases=="+iCountTestcases);
return true;
}
else{
Console.Error.WriteLine("FAiL! "+s_strTFPath+" "+s_strTFName+" ,iCountErrors=="+iCountErrors);
return false;
}
}
private void WorkOnInstanceAndLocal()