Re: universal binary crashing on iMac (Core2Duo) system
Re: universal binary crashing on iMac (Core2Duo) system
- Subject: Re: universal binary crashing on iMac (Core2Duo) system
- From: Doug Hill <email@hidden>
- Date: Mon, 5 Mar 2007 13:27:00 -0800
On Mar 4, 2007, at 11:30 PM, David Dunham wrote:
On 4 Mar 2007, at 22:54, Lijith P wrote:
The application works finely on the ppc.. But when i try to run the
application on an iMac (core2Duo) system , the application is
crashing at
randomly.. But when i disable one cpu , the application is running
properly..
My application has a main thread and a helper thread...
Is there any way to schedule multiple threads in a single
processor on
a dual core system..
I suggest you fix your threading bug. (What's the point of
threading if you can't take advantage of multiple processors
[PowerPC] or cores [Intel]?) Most often crashing with multiple
processors is merely an existing but rare bug happening more often.
You might want to ask more specific questions on Apple's MT-SMP
mailing list.
Lijith,
As others have mentioned, there is almost certainly a bug in your
code that you have only been able to manifest on a multi-CPU machine.
You may want to take a look at the following website that was posted
on this list recently that talks about bugs that manifest themselves
on multi-CPU systems.
http://ridiculousfish.com/blog/archives/2007/02/17/barrier/
Whether you actually use the techniques in the article are up to you,
but having proper locks of your data structures is probably a safer
and more portable way to fix your code.
Good luck, and let us know how if you're able to track down this bug.
Doug Hill
Oracle Corp.
email@hidden
_______________________________________________
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