Title: Basic servlet threading question
For threading in servlet check the archives of this list. Christopher has given the relevant matter and links in the previous discussions on the same topic.
-sourabh
 
----- Original Message -----
Sent: Thursday, February 28, 2002 5:22 PM
Subject: Re: Basic servlet threading question

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]

Reply via email to