A race condition occurs when one request is setting a value while another is reading it or when two pages set a value at the same time. For example, consider a page view counter. It might be an application variable incremented and then read by the page. If two people request the page at the same time, there is nothing to stop one request incrementing the counter in between the other page's increment and read, resulting in a false value, unless the page uses a lock.
-----Original Message----- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Wednesday, 6 April 2005 11:59 To: CF-Talk Subject: race condition? What is a race condition? Two threads read the same variable at once? I heard a lot about race condition lately, but I don't exactly sure what race condition is. I know that you should use locking to avoid race condition. It is like doing something to avoid something that I don't even know what it is. Johnny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201657 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

