• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing array in thread safe way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing array in thread safe way


  • Subject: Re: Accessing array in thread safe way
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Thu, 08 Mar 2012 11:22:01 +0100

Thanks for all the answers.

1. I'll read the ThreadSafetySummary. So far I had only read the Threading section of the Objective C Programming Language.

2. Accessing the progress values of the subprojects seems the way to go here.

3. Creating a proxy mutable array seems like overkill. Basically this is a thread-safe subclass of NSMutableArray, correct?

4. @Don Quixote: interesting lecture. Now I know what 'lockfree" means.

To improve performance share as little data as possible, access it as infrequently as possible and if you access it at all, finish what you're doing with the shared data as quickie as you can.

In this case the subprojects shouldn't update their progress values too often. Only if additional progress is more than 1% for example.

Jan E.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Accessing array in thread safe way
      • From: CoGe - Tamas Nagy <email@hidden>
References: 
 >Accessing array in thread safe way (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Accessing array in thread safe way (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Finding object array index when iterating through array
  • Next by Date: Re: Problem with refreshing NSMenuItems
  • Previous by thread: Re: Accessing array in thread safe way
  • Next by thread: Re: Accessing array in thread safe way
  • Index(es):
    • Date
    • Thread