What does 'thread safe' mean?
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