A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
Ping & DNS
- my free Android networking tools app
It is sorta covered in the
JavaRanch Style Guide
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-2014