Re: Multi-threaded help
Re: Multi-threaded help
- Subject: Re: Multi-threaded help
- From: Erik Buck <email@hidden>
- Date: Wed, 7 Mar 2007 07:41:19 -0800 (PST)
It pains me to say this, but multi-threaded programming is NOT something you can learn by trial and error. Even when you think you have something working, how will you know for sure ? Multi-threading issues are often infrequent and intermittent and virtually impossible to detect or debug. If you don't code it right the first time, it will probably never be right.
The state of the art of multi-threaded programming is very weak and immature. I advise any programmer who is even contemplating a multi-threaded design to reconsider. As it currently stands, it is nearly impossible to create non-trivial multi-threaded programs that are correct.
Furthermore, the example you are attempting suggests that you don't even understand why or when to use a multi-threaded design. Your example is representative of when NOT to use multiple threads.
I recommend that you start with a good non-Cocoa-specific textbook on multi-threaded programming.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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