Forums Register Login

which attribute scopes are thread-safe

+Pie Number of slices to send: Send
Identify which attribute scopes are thread-safe:
<%@page isThreadSafe='false' %>
Local variables
Instance variables
Class variables
Request attributes
Session attributes
Context attributes
I supposed the answer is:
Local variables
Instance variables
Request attributes
Please correct me if I'm wrong ...
+Pie Number of slices to send: Send
hi,
yes. as u have defined isThreadSafe false it will create new instace of the servlet for each request and so instance variables are also now thread safe along with the other two u listed.
regards
maulin.
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 789 times.
Similar Threads
SingleThreadModel
Thread safe servlets
Need Answer
Which attribute scopes are thread-safe ?
Servlets-Threafing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:02:41.