> -----Original Message----- > From: S. Isaac Dealey [mailto:info@;turnkey.to] > Sent: Friday, November 01, 2002 1:32 PM > To: CF-Talk > Subject: RE: Understanding Locking In CFMX > > > I think that what ends up being the case is that <cflock> is > actually a good > powerful tool to do something important that most people ignore or would > rather ignore. So often people wind up saying "oh you don't have > to lock in > MX" because that's the way they'd _like_ it to be, but the same problems > exist in PHP and ASP.
I don't really care if I have to lock in CFMX, I just wanted a better explanation, which Sean provided. I think his extensive post cleared up a lot of things in that area. > I don't know how ASP and PHP programmers handle the issue of race > conditions > -- with PHP because I've not really worked with it. With ASP > because in the > year that I did ASP programming I never heard it mentioned. Does that mean > it wasn't an issue? Probably not. In the year that I worked with ASP there > were a lot of things I never did -- I never implemented COM for isntance. > Does that mean that COM is a non-entity? Nope. Mike Townend pointed out to me that you do have to lock in ASP. Locking the Application scope is done with: Application.lock. As far as I can tell from my reference books, you only need to lock writes. But as Sean pointed out in his reply, there are certain situations which require a little more thought than others in regards to locking. Perhaps this is the case with ASP as well, I don't know. > 1) If ASP or PHP don't have this problem, then they must be > single-threading > sessions, which is going to slow down page requests, especially > under heavy > load, which means that CF is one up on them because CF allows you > to turn on > or off the single-threading of sessions and either not worry > about locking, > or get more speed, dependant on your needs. >From what I've seen, PHP and ASP scored higher than the previous versions of CF in regards to pages processed per second, so if they were indeed single threading, which I doubt they were, it would be sad if CF didn't have a higher page per second score in that case. Andy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

