running api as multi taksin C#?

Hello ,
I have write a code that connect to router and save the data in mysql
my problem is that it take too many time (I have about 100 units)
how can I run the “reading” function for 10 IP at the same time ? and not 1 by one?
my program is

  1. read databasa - and get\save the IP
  2. read each IP and save the date from the unit into the database.
    so for 10 units it take my about 10 min , how can I reduce the time? and make it send the API to 10 units in the same time and not one by one?

Thanks ,

Search and read detailed tutorials on “threads”.

That’s the thing you want - make each new connection its own thread. That will make your management device move back and forth between the different routers, which works out great, since you want it to manage a different router, while it waits for one to reply back.