Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:19:05+00:00 2026-05-27T07:19:05+00:00

I have an iPad application with multi-threading capabilities using GCD. When i need to

  • 0

I have an iPad application with multi-threading capabilities using GCD.

When i need to do some type of background processing, I use the following code:

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ -backgroundProcessing- }**

So my 2 questions are:

1) Since i have added ALL of my background processing to the same queue, and queues always dequeue FIFO, will they still be run concurrently? I’m assuming they will be, but im not sure.

2) According to Apple-Docs i already know that

The system provides each application with three concurrent dispatch
queues. These queues are global to the application and are
differentiated only by their priority level.

but, since my processing doesn’t require DISPATCH_QUEUE_PRIORITY_HIGH, DISPATCH_QUEUE_PRIORITY_LOW or DISPATCH_QUEUE_PRIORITY_BACKGROUND, is it advisable/ok/good practice/what-ever/ to put all my background processing on the DISPATCH_QUEUE_PRIORITY_DEFAULT global queue? Or should i start creating custom queues so that i can have multiple to use. And, if i do create more queues will there be any performance gain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:19:05+00:00Added an answer on May 27, 2026 at 7:19 am

    1) No, the global queues have a special role in this. They may execute multiple blocks concurrently on different threads. They are more or less there to have a quick way of entering background jobs if you don’t care about ordering (see [1], Blocks submitted to these global concurrent queues may be executed concurrently with respect to each other.). If you need sequential ordering, create a queue for your task. They are quite lightweight and thus not a big performance impact.

    2) Default priority should be fine for normal tasks. The priorities get more interesting when creating cpu load intensive tasks or more complex queue hierarchies (as you can put queues into queues).

    PS: I absolutely recommend the GCD videos from WWDC 2010 and 2011 as they give quite some insight into the more speficic parts of GCD.

    [1] http://developer.apple.com/library/ios/#documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has Anyone tried using PDF in iPad Application, using CGPDf functions. I have used
I am a developing an iPad application in which i have to use CTRunDelegate
We have recently developed an iPad application and now need to start demonstrating it
I am working on an iPad application. I have included some pdf files to
I am working on an iPad application. In this I have to show some
i have mp4 video. And i need to play it in my iPad application
I have an iPad application which has many categorized images I need to switch
I have an iPad application with a simple tab bar. I need to fix
I have an iPad application which connects to a web server. I need to
I have a IPad application in which I add MKMapView programmatically without using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.