|
Walden, I've been asking questions for a long time about how Websphere handles thread synchronization, and nobody really seems to know, and nobody seems to know where to find out. Evidently thread safety is partially built-in to the Servlet engine, while part of it must be handled by the programmer. Programmers say that it takes trial and error to find out what they must do for synchronization, on top of what the Servlet engine already does. Several people have confirmed that only one instance of a Servlet is created. However, while one thread may be blocked on Database I/O, perhaps another thread may be generating a response. Maybe response times would tend to be averaged across multiple concurrent users. On the other hand, Websphere documentation apparently covers how to configure and start multiple instances of the Servlet engine, even on a single box, and balance workload that way. Why would that be necessary unless needed to address the question you asked? Nathan M. Andelin www.relational-data.com ----- Original Message ----- From: "Walden H. Leverich" <WaldenL@TechSoftInc.com> To: <web400@midrange.com> Sent: Tuesday, July 30, 2002 1:11 PM Subject: RE: [WEB400] What happened to rpgenerationx.com? > >From: Nathan M. Andelin [mailto:nandelin@RELATIONAL-DATA.COM] > >The engine just synchronizes requests to one Servlet rather than creating > 900 separate instances of the same. > > Do I understand "synchronize" correctly? Are you saying that if my servlet > takes, say .1 seconds to run, the first person will be .1 second response > time, but if a second person hit at exactly the same time he would get .2 > second response time (.1 seconds waiting for the first person to finish then > .1 seconds for the second person to run?) > > If 900 users hit at exactly the same time the last one would have a 90 > second wait? Granted 900 users won't all hit enter at the same time, but > with a .1 second run time I'd guess 50 users could. That's a 5 second wait > time for the poor 50th user to hit enter. > > Please tell me I don't understand your comment. > > -Walden > > ------------ > Walden H Leverich III > President > Tech Software > (516) 627-3800 x11 > (208) 692-3308 eFax > WaldenL@TechSoftInc.com > http://www.TechSoftInc.com > > Quiquid latine dictum sit altum viditur. > (Whatever is said in Latin seems profound.)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.