How is SingleThread model implemented?

How is SingleThread model implemented?

Postby javalatte » Sat Feb 09, 2013 11:53 pm

If your servlet implements the SingleThreadModel interface, then your servlet instance doesn't process more than a request at a time. Now how does the server implement this model and handles the request, sequentially or parallely?
javalatte
 
Posts: 55
Joined: Tue Jan 29, 2013 2:31 pm

Re: How is SingleThread model implemented?

Postby Kishan » Mon Feb 11, 2013 5:03 am

As a programmer I don't know the behaviour. Depends on vendor (server provider) implementation.

Might be,
- process request sequentially
- enable parallel execution by having servlets object pool

but We don't know exact behaviour and it can change server to server.
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am


Return to Servlets

Who is online

Users browsing this forum: No registered users and 1 guest

cron