Hello all,
I have an application that uses threading. It creates 300 threads that are doing some data related stuff. Normally after the 300 threads are done the application waits 1 sec. And normally if i take the execution times and put them in excel i get a jump of 1 second every 300, in theory so.
But now i get first 300 jump of 1 sec, then 40 jump of 1 sec, then 20 jump of 1 sec and the last one is occurring until the end of the application. So it is going up and not the regular stepped 300 and 1 second wait.
The code where I could check the maxthread value is:
while (true)
{
Thread.Sleep(sleepTime);
if (clientList.Count >= config.maxThread)
continue;
doQuery(config.maxThread - clientList.Count);
}
|