This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
synchronize(getServletContext())
Cameron Park
Ranch Hand
Joined: Apr 06, 2001
Posts: 371
posted
Jun 04, 2001 12:32:00
0
Hi, I am puzzled by the implication of
synchronize(getServletContext()){}
What does it do...
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12327
1
posted
Jun 04, 2001 21:12:00
0
It would ensure that only one Thread at a time could modify the
ServletContext
using that code.
Where did you see that?
Bill
Java Resources at
www.wbrogden.com
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: synchronize(getServletContext())
Similar Threads
Confusion in code
Context/Session Thread safety
Context parameters in the Action class
Synchronizing getServletContext
Context Attributes are not thread safe??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter