Hello i want to solve a problem using many different seeds for the random number generator.
I need to run this program with a few hundred threads and each threads only needs an int N as parameter and can work 100% on its own(no shared data).
The Problem could be solved after any time from each thread and i want to end it as soon as one thread came to an solution.
How can i make something like this? so that all other threads stop as soon as one thread finished while knowing wich thread solved the problem/wich seed solved it.
Hope you can help me :D