Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
synchronize(getServletContext())
Cameron Park
Ranch Hand
Posts: 371
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi, I am puzzled by the implication of
synchronize(getServletContext()){}
What does it do...
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It would ensure that only one
Thread
at a time could modify the ServletContext using that code.
Where did you see that?
Bill
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Context/Session Thread safety
Confusion in code
Context Attributes are not thread safe??
Context parameters in the Action class
Synchronizing getServletContext
More...