Re: mulithreading, dual-core
Re: mulithreading, dual-core
- Subject: Re: mulithreading, dual-core
- From: Shawn Erickson <email@hidden>
- Date: Sun, 25 Feb 2007 12:20:22 -0800
On Feb 25, 2007, at 12:12 PM, John Daniel wrote:
My thread-safe code that had its mutex locks optimized out of
existence seems to disagree with you. Once I made my mutex locks
volatile, they magically started working the way they are supposed
to. My mutex locks didn't fail until I had 8 or 9 threads running.
So, it seemed to me that while my previous code was "thread-safe",
it wasn't "multiprocessor-safe".
Something was likely wrong in your usage. It almost sounds like you
shared the creation of locks and that different thread could get a
different instance of a lock when instead they should have been the
same lock. That isn't a problem with the locks but with how you
manage their creation... of course without seeing code I can only
speculate base on the little that you said in your email.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden