title: Run Disptach sync block from async
body: <p>I am new to Dispatch queue, now am trying to call background operations through this dispatch queue.</p>
  
  <p>Here I have a doubt, please help me in this. In the below example,</p>
  
  <p>whatQueue:- Should it be mainQueue, queueA or shall I create a new Queue?</p>
  
  <p>dispatch_queue_t queueA = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);</p>
  
  <pre><code>dispatch_async(queueA, ^{
       NSMutableArray * items = listofItems;
      for(NSString * str in items)
      {
           //Run a sync block to send str to server
          dispatch_sync(***whatQueue***, ^{
  
          });
      }
  });
  </code></pre>
  
  <p>Thanks,
  Phani</p>