title: Multi threaded curl handling multiple connections at the same time
body: <p>Is curl_multi interface spawning new threads internally to handle multiple requests concurrently? Is it equal to spawning threads manually and just using curl_easy handles? What is more performant. I need to make up to 1000 concurrent requests.</p>
  
  <p><a href="https://curl.haxx.se/libcurl/c/multithread.html" rel="nofollow noreferrer">https://curl.haxx.se/libcurl/c/multithread.html</a></p>
  
  <p>Is using curl_multi equal to the example in the link above?</p>
  
  <p>From: <a href="https://curl.haxx.se/libcurl/c/libcurl-multi.html" rel="nofollow noreferrer">https://curl.haxx.se/libcurl/c/libcurl-multi.html</a></p>
  
  <blockquote>
    <p>Enable multiple simultaneous transfers in the same thread without making it complicated for the application.</p>
  </blockquote>
  
  <p>What does it mean? How does it handle multiple transfers in the same thread? I could as well create 100 threads with 100 curl_easy handles and make requests there.</p>
  
  <p>Maybe the question should be: When to use multiple threads and when to use curl_multi.</p>