Script is starting with 150 threads. They work for random time and sleep random time also.
How you can make the script to run only 10-20 threads at the same time? When this 10-20 threads finish work they go to sleep, another 10-20 threads start and so on.
There are many solutions to do this, but which solution helps to optimize the source code is important. Please clarify the purpose, explain more clearly
Yeah you could buy multiple keys, then save them as resource list.
Then you can use resource variable as a key, which will result in
using different key for each new thread.