What is the goal of using many threads? To be connected to many servers, or the same server many times? Is this an attempt to improve download speed?
Step 1: Go to developer.apple.com and read their fine documentation. Step 2: Create an XCode project and add code until you have a working program.