cancel
Showing results for 
Search instead for 
Did you mean: 

WebScripts are single threaded?

subwiz
Champ in-the-making
Champ in-the-making
One of my development project I see few WebScripts written with private variables. These private variables are used to share information across various methods in a single request. Is the WebScript execution similar to Servlet single threaded model?

Servlet Single Threaded Model: http://docstore.mik.ua/orelly/java-ent/servlet/ch03_04.htm
1 REPLY 1

hsohaib
Champ on-the-rise
Champ on-the-rise
The webscript execution is similar to the normal servlet's execution : one instance accessed by multiple threads.
It's different from the SingleThreadModel, if implemented the container either create one instance of the servlet and queue the requests, or instantiate multiple instances and use a queue for each one, anyway, its deprecated i think.