At 07:55 PM 3/5/98 -0500, Scott, Chris wrote:
>I assume a multithreaded CP can process more than one
>web event at the same time. With ND 3.X, you could safely
>assume that another thread would not change the instance
>variables in your CSpPage objects during a web event.
>Is this no longer a safe assumption?

Hi Scott--

Yes, it is safe.  I'm relatively sure I have this right, but I won't
guarantee it entirely, so take this message with that caveat:

Actually, ND4 uses a notion of a project "context", which remains
consistent through a web event.  Each thread gets its own project context
as it is executing, so the current thread is the only one working with that
page instance at a given moment.  If another thread comes in and needs a
context and none are available, ND will create a new one so that it can
execute simultaneously.  Under heavy load, ND will end up instantiating the
same number of project contexts as threads per worker.

Static variables are *not* threadsafe though, which they used to be, so you
have to be careful there.

Todd

--
Todd Fast
Senior Consultant
NetDynamics, Inc.
Email   [EMAIL PROTECTED]
Phone   512.656.5068
Pager   888.588.0486

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to