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 7441703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:03:31+00:00 2026-05-29T11:03:31+00:00

I am using a pretty decent tutotial I have found for GCD, in it

  • 0

I am using a pretty decent tutotial I have found for GCD, in it it shows you how to declare a new dispatch queue.

Grand Central Dispatch operates using queues. Queues are a C typedef:
dispatch_queue_t. To get a new global queue, we call
dispatch_get_global_queue(), which takes two arguments: a long for
priority and an unsigned long for options, which is unused, so we’ll
pass 0ul. Here’s how we get a high-priority queue:

In it it says to pass 0ul in as a parameter like so

dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);

Im hoping someone can explain to me what 0ul is? and why its included?

  • 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-29T11:03:32+00:00Added an answer on May 29, 2026 at 11:03 am

    It’s just 0 and the ul is telling the compiler that you want it to be an unsigned long to match the function signature.

    dispatch_queue_t dispatch_get_global_queue(long priority, unsigned long flags);

    If you don’t add the ul the 0 will get treated as in integer which may cause a compiler warning.

    Please look at the documentation here.

    https://developer.apple.com/library/mac/#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

I am pretty much new to using SQL Server 2000. I have been using
I have a pretty decent list of the advantages of using a Rules Engine,
We have an HTML page which displays a bunch of pretty bars using divs
I'm pretty new to WPF and using the MVVM design pattern. To help learn
i'm pretty new at using C++ and I'm actually stopped at a problem. I
I am pretty new to image capturing using java. Which is better and easy
I have been using automapper pretty successfully lately but i have come across a
Using Pretty Faces 3, I have some mappings like these: <url-mapping id=search> <pattern value=/search
Currently i'm using pretty much Unix + Mysql + Perl + Apache with some
I have been using PRETTY_FUNCTION to output the current function name, however I have

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.