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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:46:26+00:00 2026-05-12T18:46:26+00:00

I want to setup a serialized task queue using NSOperationQueue but I’m a little

  • 0

I want to setup a serialized task queue using NSOperationQueue but I’m a little confused by the terminology discussed in the documentation.

In the context of an NSOperation
object, the terms concurrent and
non-concurrent do not necessarily
refer to the side-by-side execution of
threads. Instead, a non-concurrent
operation is one that executes using
the environment that is provided for
it while a concurrent operation is
responsible for setting up its own
execution environment.

What does it mean to setup “own execution environment’?

My NSOperation derived tasks need to execute serially in the order they were added to the queue.

So I thought that this implies a ‘non-concurrent’ operation so I’d implement ‘main’ for the work that needs to be completed and also return NO for ‘isConcurrent’. In addition, NSOperationQueue’s ‘setMaxConcurrentOperationCount’ would be set to 1.

The reason I am not setting up NSOperation dependency between these tasks is because the order they’re inserted into the queue is the order they should be completed.

Are these assumptions correct?

  • 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-12T18:46:26+00:00Added an answer on May 12, 2026 at 6:46 pm

    NSOperationQueue always executes operations concurrently, while taking dependencies into account.

    A “non-concurrent” operation requires a separate thread in order to execute concurrently. NSOperationQueue is responsible for providing this thread. In other words, a non-concurrent operation depends on NSOperationQueue to make it a concurrent operation.

    A “concurrent” operation is concurrent on its own; it doesn’t need NSOperationQueue to create a thread for it. An example would be an operation that uses asynchronous file IO.

    If you want two or more operations to execute serially you need to use dependencies.

    If you want an operation to block the main thread then don’t use NSOperationQueue; just run each operation one after the other on the main thread.

    To manually set maximum of concurrent operations, use method on operationQueue setMaxConcurrentOperationCount:

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

Sidebar

Ask A Question

Stats

  • Questions 217k
  • Answers 217k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Clients shouldn't care, necessarily. You'll convince clients by showing them… May 12, 2026 at 11:22 pm
  • Editorial Team
    Editorial Team added an answer (?> … ) is the syntax for an atomic grouping.… May 12, 2026 at 11:22 pm
  • Editorial Team
    Editorial Team added an answer Like this: $currentGroup = false; while ($row = mysql_fetch_array($result)) {… May 12, 2026 at 11:22 pm

Related Questions

I want to setup a serialized task queue using NSOperationQueue but I'm a little
I have a web-app-database 3 tier server setup. Web requests data from app, and
I have a simple form that is used to update an entity in my
I want to implement test feedback in my web application in the following manner
I am using the JQuery.Sortable() function to create a reorderable list of items like

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.