Re: Importance of thread safety and performance.
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