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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:39:20+00:00 2026-06-05T11:39:20+00:00

In my app, I want to create a class that receives a certain type

  • 0

In my app, I want to create a class that receives a certain type of notifications, begins it’s work and sends out notifications when it’s done. I think that later I may need to use concurrency to optimize the app — so this work that the class does is done in separate threads — but right now I don’t have any knowledge or experience of working with concurrency and I don’t want to spend time on premature optimizaion. However, if I understand correctly, the default usage of notifications doesn’t mix with concurrency so well.

Is there a way that I can just follow few simple rules with notifications right now without diving into concurrency, and avoid rewriting all that code later?

  • 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-05T11:39:21+00:00Added an answer on June 5, 2026 at 11:39 am

    Yes, you can avoid a rewrite.

    I would write your work/background tasks inside blocks and use GCD (Grand Central Dispatch). This works fine and is easy to use in the non-parallel case, but will also allow you to easily parallelize your work later.

    I’d look into NSBlockOperation and NSOperationQueue and/or dispatch_async()

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

Sidebar

Related Questions

I want to create a class that handles Flash-PHP client-server communication. Basically, Flash sends
I want to create a customized UIView class (a static lib) for some app
I want to create a PHP app that can send text messages ; There
I want to create a web app that will use wicket, hibernate and spring
I want to create a Facebook app that can operates inside IFrame / FB
I want to create an App that uses a potentially large xml file. It
There is some interfaces in my app and I want to create singleton class,
Frequently I need to create a .Net class library that requires an app.config for
I am creating a rails3 application and I want to create a class that
I created a class ServerModel for my app and in it I want to

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.