each incoming request to a servlet is handed over to a thread to perform the task.
Read this for more info about how they are handled. http://www.javaworld.com/article/2072798/java-web-development/write-thread-safe-servlets.html
If your servlet implements SingleThreadModel interface, each thread use separate instance of servlet. SingleThreadModel is deprecated, Don't use it.
No comments:
Post a Comment