As per my requirement that is "I need to write a script in perl by using multithreading concept where i need to ping 500 server continousely at an interval of 60 sec".
For Example: In my network if i have 500 servers and i need to ping each server at a interval of 60 seconds (i was using an infinite loop to ping these serevr as per the ping interval).
According to the above scenario i opened 500 threads to ping the 500 server and where each thread which will be executing continousely at an interval of 60 seconds as per the requirement. But when i run the script i observered that after 100 or 120 threads,the threads are terminated automatically.
My question is:
1) Why the threads are terminating after 100 or 120 threads. Is there any other way to ping a server continousely by using threads continousely.