This week's giveaway is in the
We're giving away four copies of
video training course and have Ken Kousen on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Threads and Synchronization
Joined: Nov 02, 2007
Mar 26, 2008 00:40:00
How to implement
singlethread model, by not using
Joined: Mar 22, 2005
Mar 26, 2008 00:55:00
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?
I agree. Here's the link:
Single Threaded Model Question
Servelet instances created in web.xml
what is SingleThreadModel?
A question about 'single-threaded mode'
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015