How single threaded model works after implementation in class, basically architecture point of view.

Showing Answers 1 - 4 of 4 Answers

Vikram

  • Nov 23rd, 2005
 

The Single Thread Model is an interface which is used to indicate that only a single thread will execute the service( ) method of a servlet at a given time. It defines no constants and declares no methods. If a servlet implements this interface, the server has only two options. 1st, it can creat several instances of the servlet. 2nd, it can synchronized access to the servlet.

  Was this answer useful?  Yes

Kapil

  • Jan 12th, 2007
 

Hi Vikram.

I feel your answer is absolutely correct. However, could you please elaborate/expand on "How to program the server to either

[1] create multiple instances of our servlet class

or

[2] to serialize the requests made to that particular servlet?"

Thanks.

Kapil

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions