tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: ArrayList vs. Vector
Date Mon, 23 Apr 2001 21:12:35 GMT
The biggest place I worry about synchronization in servlets is in static
(class) variables. In my previous post, I said I migrated a lot of my code
to the new Collection classes. To be more specific, I migrated my instance
variables and left my class variables as Vectors/Hashtables.

Thanks,
--jeff

----- Original Message -----
From: "Tim O'Neil" <tim@xythos.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, April 23, 2001 1:47 PM
Subject: Re: ArrayList vs. Vector


> At 01:09 PM 4/23/2001 -0700, you wrote:
> >This leads to a new question...
> >
> >What impact does synchronization have on Web applications? Where is it
> >necessary?
>
>
> Well, the only good use of a collection is for keeping
> tabs on a group of data records, right? Well, what happens
> if one web user hits your baseball averages server and updates
> Cardinal Albert Pujols batting average while another user
> tries to update at exactly the same time? This is what
> synchronization is for.
>
>
>


Mime
View raw message