I am writing a script to validate the given URLs and resolve the IP address. I would like to fix this, so I decided to transfer it to several threads. However, I want to make sure that the scripts do not overload the server on which it runs. The question arises: how to check system loading in a script? Or is there a way to determine how many threads can be started simultaneously?
source
share