I asked why 100,000 run () calls compile faster to 100000 start (), because I found out that, despite multithreading, 100000 start actually takes more than 10,000 run calls, because it controls flows.
In fact, I tried to run 100,000 threads to simulate the load on the EJB method that I want to test, and it seems like this is not possible. Is there any way I could achieve this? Or is it that I will need to have several machines to achieve this load.
Is it true that if I have a quad-core processor, I should have no more than 4 threads at a time to prevent context switching too heavy, because 4 threads will be running at any given time?
source share