I don't get the first part of your reply. Are you saying that the Single
Threaded Sessions setting on the server is a bad idea because of your browsing
habits? I don't believe I've ever experienced a thread getting hung up and
having to restart the browser. And what sort of a CF operation
It's nice to hear someone else express this sentiment. (smile)
Indeed, it doesn't make any sense. Multi-threaded applications are
ubiquitous. Thousands of programmers have written code to properly manage
access to shared memory resources. It's too bad none of them have worked for
Gosh, I disagree completely with this.
For me, having my code littered with irrelevant CFLOCKs is sloppy.
I'm comfortable with requiring the server setting. It's a simple, clean,
set-and-forget solution. Obviously, that's not going to work for everyone.
If you can't enable Single Threaded
With respect to this issue, comparing CFML to C++ is apples to oranges.
I can't expect a low-level language to automatically manage concurrent access
to shared memory resources, because I have defined the resources and I have
decided how they are to be accessed and shared. I can't expect a
Oh, so CFLOCK is a *feature*. Maybe you've taken off your Macromedia cap,
but I can see a faint MM on your forehead. (smile-hope you don't mind the
teasing, Mr. DeathClock sir. ;^)
Seriously, providing the necessary internal concurrency control for getting
and setting variables should be
Why not add it to the Real men like to take the pain and do things the hard
way thread? (smile)
I did six years of development work on a product in roughly the same category
as ColdFusion (albeit pre-Internet). The core was written in Assembler,
extensions in C. It was heavy duty stuff and
Nice post.
I hadn't given much thought to the implications of a scoped lock preventing
access to the entire scope--a very good argument in favor of implementing
automatic internal locking, which would only need to lock the specific item
being accessed.
Gosh folks, this should be simple stuff
Or enable Single Threaded Sessions in the CF Administrator.
[EMAIL PROTECTED]
- Original Message -
From: Raymond Camden [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, March 17, 2002 3:14 PM
Subject: RE: UDF question
Of course, you wan't to wrap the call to this UDF in
I brought this option up in an earlier thread on this list and got a bit of a
spanking. (smile)
I run my main server with Single Threaded Sessions enabled, as well as Server
and Application scopes set to Automatic read locking. I don't lock Session
variables and I only lock writes for Server
Try something like this...
function BasketItemCount()
{
var totitems=0;
for (i = 1; i lte session.basket.recordcount; i = i + 1) {
totItems = totItems + session.basket.itemQty[i];
}
return totitems;
}
Keith Meade
[EMAIL PROTECTED]
- Original Message -
From: Howie Hamlin
10 matches
Mail list logo