This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes singlethreadmodel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "singlethreadmodel" Watch "singlethreadmodel" New topic
Author

singlethreadmodel

bakiyalakshmi dhanraj
Greenhorn

Joined: Nov 02, 2007
Posts: 24
How to implement Servlet singlethread model, by not using
singlethreadmodel?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41057
    
  43
Do you mean how to ensure that only one thread can run a servlet at any given time? If so, you can use synchronization that covers the complete body of your doGet/doPost methods.

But why would you give up the benefits of concurrent access?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: singlethreadmodel
 
Similar Threads
what is SingleThreadModel?
A question about 'single-threaded mode'
Starting servlets
Single Threaded Model Question
Servelet instances created in web.xml