I want to write a little example demonstrating the advantages of threads.
My idea is a computation (prime factorization) that can be performed with
different methods, all of them leading to the same result but at different
speed. The time needed depends on the input but you can't easily estimate
it.
I want to start a thread for every method and if the first computation
finishes the main thread should receive the result and should abort all
other threads. Unfortunately Thread.Join and Thread.AlertJoin can wait for
only one thread at once. Sounds like the example becomes more complicated
than it should. :-)