• Post Reply Bookmark Topic Watch Topic
  • New Topic

[SCWCD] class that control Threads in Servlet  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm with this doubt, about when the thread is instanciated and started...
I'm using the tomcat container, but I can't see when this happens.

Do you know which class or classes control these process?

Thanks

Paulo Gervásio.

 
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3064
248
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paulo,

Welcome to javaranch!

For every request a separate thread is created, why do you want to know which class controls this? This is something container specific and not part of the SCWCD exam.

Regards,
Frits
 
Paulo Gervásio.
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frits!

Thanks!

I already knew that the Container creates a Thread by requisition, but i like know how this process works.
I think that this info will help me in future problems with safety and synchronization.

[]'s
Paulo Gervásio
 
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frits Walraven wrote:
For every request a separate thread is created, why do you want to know which class controls this? This is something container specific and not part of the SCWCD exam.



creating Threads to serves the request is container specific or servlet/jsp specific?
 
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Abimaran Kugathasan wrote:creating Threads to serves the request is container specific or servlet/jsp specific?


No its not, its given in the Spec that a new thread will be created to handle each request. What Frits is saying is the spec doesn't say which class will create a thread to handle the request, the container can have its own classes for that...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!