Of course, if you have several objects of ConcreteAction, every object has
its own testString. So if each object has only one thread attached to it,
the access to testString is thread-safe.
You could put a counter to see how many ConcreteAction objects there are:
class ConcreteAction
{
Yes. As a non-static instance variable, each thread would have it's own
reference and be able to set and maintain it's value separately from any
other thread.
Mark
-Original Message-
From: Esbrook, Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 7:45 AM
Quick
]]
Sent: Thursday, October 03, 2002 9:48 AM
To: Struts Users Mailing List
Subject: Re: threading question
Had your coffee yet this morning Mark? I don't think you read this very
closely. Unless I am sorely mistaken (and it wouldn't be the first time!),
it has been pointed out many times on this list
Sorry, Dave. Derry, not Jerry. (Man, I knew I shouldn't have drank
that second bottle of cough syrup!)
-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 9:48 AM
To: Struts Users Mailing List
Subject: Re: threading question
Had your coffee
U...that's Dave...but that's all right. Go get that second cup
of coffee! ;-))
Dave Derry
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
Absolutely right, Jerry! Ironically, I was just writing a non-Struts
helper
class to make a credit card validation
On Thu, 3 Oct 2002, Esbrook, Scott wrote:
Date: Thu, 3 Oct 2002 07:45:21 -0400
From: Esbrook, Scott [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: threading question
Hello,
Quick Struts/servlet threading
Yeah, and now I'm W-I-R-E-D. :-0
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 11:35 AM
As others eventually drank enough coffee to figure out :-),
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
7 matches
Mail list logo