Forums Register Login

Servlets

+Pie Number of slices to send: Send
We know that Servlet container creates a new thread for each incoming request , that is a thread is created each time service method is invoked...

is there a way to manually kill that thread ?

thanks in advance
1
+Pie Number of slices to send: Send
Welcome to JavaRanch.

While a new thread may or may not be created when a request comes in -the servlet container may have a pool of existing threads from which one is used when a request comes in- it would be be a bad idea to mess around with objects that are under the control of the servlet container.

What prompted this question?
+Pie Number of slices to send: Send
i want to keep the count of the times the service method .... but at the same time i dont want multiple threads being created!!
+Pie Number of slices to send: Send
See my answer in the other topic where you asked that question; please do not post essentially the same question multiple times.
+Pie Number of slices to send: Send
thank you sir.. for such a quick response....


i am new to this forum, in future i will surely use descriptive subjects.....


A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 609 times.
Similar Threads
how servlets handle multiple requests concurrently
difference betwen parameters and attributes
How Servlet works?
how many instances???
JSP & Servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:37:17.