• 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: Importance of thread safety and performance.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Importance of thread safety and performance.


  • Subject: Re: Importance of thread safety and performance.
  • From: Andre <email@hidden>
  • Date: Sat, 9 Jul 2005 19:10:31 -0700

Excessive pthread locking can also impact performance, because locking involves more than just setting a bit somewhere. There's a significant amount of synchronization involved, particularly on multiprocessor machines.

Pandaa's suggestion to keep your multithreading at the level of "coordinating" objects and lock at a slightly larger granularity is a good one. Locking in some accessors may be unavoidable, but you probably don't want to do it in every accessor...
Yea, then I'll do that.

Does anyone know of any small reentrant open source frameworks just to get a good idea?

Thanks for the reply.

Andre

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Importance of thread safety and performance. (From: アンドレ(Andre) <email@hidden>)
 >Re: Importance of thread safety and performance. (From: Jonathon Mah <email@hidden>)
 >Re: Importance of thread safety and performance. (From: アンドレ(Andre) <email@hidden>)
 >Re: Importance of thread safety and performance. (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Documentation frustrations
  • Next by Date: Re: Documentation frustrations
  • Previous by thread: Re: Importance of thread safety and performance.
  • Next by thread: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not?
  • Index(es):
    • Date
    • Thread