> important. For example, in the official Macromedia
> courseware, race conditions are discussed and an example is
> provided. That example uses a variable to store the number of
> users who have logged into the application. But in real life,
> do you really care so much whether a user thinks he's the
> 53rd user or the 54th?
I'd just like to +1 this and add another example. Imagine you want to
know when an application started up. You could do:
<cfif not isDefined("application.startuptime")>
<cfset application.startuptime = now()>
</cfif>
Technically, you should lock this, but honestly, do you really care if N
threads access this code at the same time, and your startuptime ends up
being 5-10 miliseconds off?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

