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

  • Home
  • SEARCH
  • 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 7629305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:48:12+00:00 2026-05-31T05:48:12+00:00

Among some other ways, there are these two ways to get queues in GCD

  • 0

Among some other ways, there are these two ways to get queues in GCD:

dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);

dispatch_get_main_queue();

If I’m not completely wrong, the “main queue” is executing on the main thread and is good for “callback” blocks which execute UI work.

Does this mean a “global queue” is one that runs on a background thread?

  • 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-31T05:48:14+00:00Added an answer on May 31, 2026 at 5:48 am

    The main queue does indeed run on the main thread like you say.

    The global queues are concurrent queues and from the main page for dispatch_get_global_queue:

    Unlike the main queue or queues allocated with
    dispatch_queue_create(), the global concurrent queues
    schedule blocks as soon as threads become available (“non-FIFO” completion order). The global concurrent
    queues represent three priority bands:

           •   DISPATCH_QUEUE_PRIORITY_HIGH
           •   DISPATCH_QUEUE_PRIORITY_DEFAULT
           •   DISPATCH_QUEUE_PRIORITY_LOW
    

    Blocks submitted to the high priority global queue will be invoked before those submitted to the
    default or low priority global queues. Blocks submitted to the low priority global queue will only be
    invoked if no blocks are pending on the default or high priority queues.

    So, they are queues which run on background threads as and when they become available. They’re “non-FIFO” so ordering is not guaranteed.

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

Sidebar

Related Questions

I've created an Outlook 2007 AddIn that among other things has to perform some
I have a stored procedure that does, among other stuff, some inserts in different
I'm working on a module that, among other things, will add some generic 'finder'
I just downloaded ASP.NET along with some other things(SP1 and such) Total: 9XX MB.
the following piece of code works fine when i use it among some code
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
I have some code shared among multiple projects in a static library. Even with
My current setup : I have an entity object with some properties, among them
I have a page that loads content through AJAX. Among this content are some
We're exporting our analytics reports in various formats, among them CSV. For some clients

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.