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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:45:59+00:00 2026-06-12T22:45:59+00:00

I am new to NSoperation . NSoperation is a singleshot object. How can we

  • 0

I am new to NSoperation. NSoperation is a singleshot object.

  1. How can we achieve multiple operations concurrently through NSoperation?

  2. is it possible without NSoperationQueue?

  3. Even if we use NSoperationQueue, it will perform operations FIFO format.How will it execute Concurrently?

  • 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-06-12T22:46:03+00:00Added an answer on June 12, 2026 at 10:46 pm

    If you want to implement a concurrent operation—that is, one that runs asynchronously with respect to the calling thread—you must write additional code to start the operation asynchronously. For example, you might spawn a separate thread, call an asynchronous system function, or do anything else to ensure that the start method starts the task and returns immediately and, in all likelihood, before the task is finished.

    Most developers should never need to implement concurrent operation objects. If you always add your operations to an operation queue, you do not need to implement concurrent operations. When you submit a nonconcurrent operation to an operation queue, the queue itself creates a thread on which to run your operation. Thus, adding a nonconcurrent operation to an operation queue still results in the asynchronous execution of your operation object code. The ability to define concurrent operations is only necessary in cases where you need to execute the operation asynchronously without adding it to an operation queue.

    See the Concurrency Programming Guide – section Concurrent Versus Non-concurrent Operations

    Also Please read Managing Concurrency with NSOperation

    You typically execute operations by adding them to an operation queue (an instance of the NSOperationQueue class).

    The NSOperationQueue class regulates the execution of a set of NSOperation objects. After being added to a queue, an operation remains in that queue until it is explicitly canceled or finishes executing its task. Operations within the queue (but not yet executing) are themselves organized according to priority levels and inter-operation object dependencies and are executed accordingly. An application may create multiple operation queues and submit operations to any of them.

    An operation queue executes its operations either directly, by running them on secondary threads, or indirectly using the libdispatch library

    You can read more about NSOperation here and read more about NSOperationQueue here

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

Sidebar

Related Questions

I m new to iphone. where i get examples for NSOperationQueue , NSOperation ?
I have a background thread (NSOperation) that I use to get new messages for
I am working with an NSOperationQueue and I want to add new NSOperations to
new to c#. I'm trying to make a simple system where I can search
I want to use Core Data in background threads and NSOperationQueue. Now I thought
I have objects that extends NSOperation. I also have NSOperationQueue. I have a timer
In my application, I want to fetch new xml data after user scrolls through
New to Git and just started to use Github. Just created my first public
EDITED WITH NEW CODE BELOW I'm relatively newbie on Multithreading but to achieve my
I have a NSOperationQueue set to NSOperationQueueDefaultMaxConcurrentOperationCount . It is filled with NSOperation objects

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.