I have a likely silly questions but having trouble finding a proper answer to it.
If I have a large number of threads working simultaneously, each of them wanting to perform a heavy calculation. It makes sense that his calculation is just a single static function in some class I could call with different parameters from each of the threads. However, since (to my understanding) static functions cannot have many instances, will I run into a bottleneck where I'm trying to call the same method from all the threads?
(the calculation is completely independent per thread, so in essence I don't even need it to be synchronized, so I would like for all threads to make this calculation in parallel.. would this work while sharing a static call? )
Thanks!