LynchWu wrote:
> Hi all
>
> In servlet technology, multi-threading servlets can
> improve performance by light-weight context switching.
> Can JSP do the same thing, when most of its variables
> are page-wide?
>
For most purposes, servlet and JSP authors do not need to multi-thread their own
servlets and JSP pages. All the multiple thread support is buried inside the
servlet container that is running those servlets and pages. This servlet container
is running inside a Java Virtual Machine (JVM) implementation that is specific to
your hardware+OS platform.
However, the same question can then be asked, "does the servlet container take
advantage of lightweight context switching?" The answer is dependent on the JVM
you run it in, but the general answer is "yes" -- but the details of how this is
done depend totally on the JVM you are using.
>
> Thanks in advance
> ==========================
> Lynch Wu
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets