Hello guys!
I am using about 100 threads in Editor, when they are calculating different tasks on the click of a button for about a minute or so
There is not interaction with Unity API, but if there are more than 100 threads, unity’s main thread tends to freeze.
When I open resource manager, it shows that CPU currently is 100% used by Unity, and the RAM used is 330 MB.
But it also shows that it is using 20 threads at maximum! (and is only 1 process)
Does that mean I am really not using threading, but just letting the processor to alternate between them quickly?
If so, what is the way to do threading?
for each of my threads, I am saying :
Thread t1 = new Thread(new ParameterizedThreadStart(Function1));
t1.Start(object FunctionArgument);
Thank you for help