• 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: Convenience Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convenience Methods


  • Subject: Re: Convenience Methods
  • From: m <email@hidden>
  • Date: Wed, 26 Sep 2007 22:06:21 -0700

On Sep 26, 2007, at 7:23 PM, Erik Buck wrote:

On Sep 26, 2007, at 10:01 PM, Murat Konar wrote:

Wasn't the original motivation for immutable objects to simplify the implementation of multi-threaded or distributed code?

Maybe. How does it do that?


By obviating the need for synchronization mechanisms (e.g. mutexes) when sharing immutable objects in separate execution threads. You can't have a race condition for objects that don't change.

_murat
_______________________________________________

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


References: 
 >RE: Convenience Methods (From: Erik Buck <email@hidden>)
 >Re: Convenience Methods (From: Murat Konar <email@hidden>)
 >Re: Convenience Methods (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Convenience Methods
  • Next by Date: One-to-many relationship
  • Previous by thread: Re: Convenience Methods
  • Next by thread: Re: Convenience Methods
  • Index(es):
    • Date
    • Thread