• 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
What does 'thread safe' mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What does 'thread safe' mean?


  • Subject: What does 'thread safe' mean?
  • From: Kevin Ferguson <email@hidden>
  • Date: Thu, 26 Jun 2008 23:50:21 -0700

Greetings,

I am not entirely sure as to what exactly a thread is, but seeing as anything I've ever programmed is light weight, I've never needed to worry before. And to be honest, such is still the case. This question is merely to satisfy my personal curiosity on the topic, and I can't seem to find a satisfactory answer through google.

Up until now, I just figured that something that wasn't thread safe would just crash if one attempted to access it from more than 1 thread. (Or it'd just give you some unexpected results) Recently, however, I read something that seemed to indicate that trying to thread a non thread safe class/method could lead to slightly worse problems than a crash. (The article in question mentioned 'damage your computer')

So, when something is 'not thread safe', what exactly does it mean? In addition, if one tries to thread a non thread safe class, what can the expected results be?

Thanks!
-Kevin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: What does 'thread safe' mean?
      • From: Omar Qazi <email@hidden>
    • Re: What does 'thread safe' mean?
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: [Moderator] List Guidelines - Must Read
  • Next by Date: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
  • Previous by thread: Re: subclassing CAAnimation
  • Next by thread: Re: What does 'thread safe' mean?
  • Index(es):
    • Date
    • Thread