• 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: Multi-threaded help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Multi-threaded help
      • From: Emiel Lensink <email@hidden>
    • Re: Multi-threaded help
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: call scrollRangeToVisible in multi-threads cause application dead lock
  • Next by Date: Re: call scrollRangeToVisible in multi-threads cause application dead lock
  • Previous by thread: Re: Multi-threaded help
  • Next by thread: Re: Multi-threaded help
  • Index(es):
    • Date
    • Thread