variables in
doGet(), doPost(), service() are not shared. each thread corresponding to a
request has its copy of these varialbles. Similarly, variables defined in for
loop are local.
-----Original Message-----
From: Erik Beijnoff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 5:10 PM
To: [EMAIL PROTECTED]
Subject: Basic servlet threading question
What do I have to take into consideration when it comes to servlet
multithreading?I know that an variable defined in the body of the servlet is shared among
all requests, but what about variables defined in the methods, for example
in doGet(). Is that shared to? And what about a variable defined within a
for loop?Best regards
Erik Beijnoff
Systems development
[EMAIL PROTECTED]
[EMAIL PROTECTED]
