Forums Register Login

Is it mandatory (request thread).

+Pie Number of slices to send: Send
I read that the container creates for each request captured a thread. I know that one thread is generated to handle one Servlet instance, if you have ten started Servlets and all up, so you got one thread for each Servlet started, but for each request do you have addicional threads running?
+Pie Number of slices to send: Send
Yes, assuming that you have 10 diferent servlets in your webapp then the container will create/allocate 1 thread per request, independently of what servlet will serve that request.
+Pie Number of slices to send: Send
how can we have many instances of single servlet in one JVM?
+Pie Number of slices to send: Send
Vani,

To answer your questions, if servlet implements Single Thread Model then vendor can implement STM by creating multiple instances of servlet and make sure that every sevlet instance creates only one thread at a time.

Thanks.
Prasad
+Pie Number of slices to send: Send
ooh, got it. thanks prasad.
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 852 times.
Similar Threads
instance pooling of servlet
Servlets and Threading
Servlet of a JSP
How servlet process multiple request.
JSP & Servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:34:41.