• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads

 
Haneef Basha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when the thread is started?
 
Carl Wauters
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After the container had found the servlet the client requested and it had created an HttpServletRequest and an HttpServletResponse object. Those objects will be passed as arguments in the service() method if the init method of the servlet is completed.

Regards,

Carl
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Haneef Basha:
when the thread is started?


Are you asking about threads in server to server client request or java threads in general ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haneef Basha,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
TellTheDetails

Your question is impossible to answer without more clarification from you as to what you're talking about.
 
Tony McClay
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> when the thread is started?


Well in reality there is no way of telling. The Specification is empty on when the thread is created, and leaves this up to the people who are building the Servler containers. They may find optimized ways of do this to fit thier purpose.

In general, from the programming model, we should not need to know this, only use the functionality from our abstract layer http.servlet layers.

Now.. You may be able to ask your vendor this question or if it is an open source container, go look at the code yourself.

I am curious... what is the root of your problem, that you need to find out when the thread is created?


Tony
Sun Certified Web Business Component Developer
Sun Certified Web Components Developer
Sun Certified Programmer for the Java 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic