I am writing a script to SNMP read and writes to DHCP hosts (using the Net::SNMP module). But unfortunitly I have 5000 hots at minumum for one past of the script. The values are in a hash which I use a 'foreach' to step through. I want to creat a queue of 20 threads. Do I used advanced semphores? And how do I make sure that no more than 20 threads are being created (none of the hash elements are being skipped)? Code samples would be helpful
thanks,
-Otter