For my senior project still in progress, "The Puzzler - 3D Style," .NET multi-threading has played a CRITICAL role in shaving off additional mintues that the Solution Algorithm is taking to come up with finished final results for a three dimentional puzzle of variable size. On the average, up to four mintues is being saved for a 25x25x25 randomly generated puzzle.
The power of .NET muti-threading support for algorithm enhancement, pass it it on!
foreach( Thread trailingThread in solutionThreads )
{
trailingThread.IsBackgroundThread = true;
trailingThread.Priority = ThreadPriority.AboveNormal;
trailingThread.Start();
}
foreach( Thread trailingThread in solutionThreads )
while( trailingThread.IsAlive );
Comments are closed.