Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Multithreading or no multithreading?
Hello,
I'm doing this project for monitoring computer labs' status, and I'm new to multithreading. So, for example to get a "live or not" status of all the computers in a lab (say 40 computers) i will have to ping them all at the same time, should i use 40 threads? won't that be too much threads? is it even encouraged to use multithreading at all in this case?
Any advice will be much appreciated. Thanks.
I don't really see anything wrong with running this in multiple threads, as long as you limit the number of ping packets that are sent by each thread. The threads will still be somewhat asynchronous, as you cannot start them ALL at the same timeā¦ just within very short times of each other, and while others are running.